src/Context/ApiContext.php
protected function setRequestMethod($method, $force = true) {
        $this->request = $this->request->withMethod($method);
        $this->forceHttpMethod = $force;

        return $this;
    }
protected function setRequestMethod($method, $force = true) {
        $this->request = $this->request->withMethod($method);
        $this->forceHttpMethod = $force;

        return $this;
    }
protected function setRequestMethod ( $ method , $ force = true ) { $ this -> request = $ this -> request -> withMethod ( $ method ) ; $ this -> forceHttpMethod = $ force ; return $ this ; }
Update the HTTP method of the request

@param string $method The HTTP method
@param boolean $force Force the HTTP method. If set to false the method set CAN be
overridden (this occurs for instance when adding form parameters to the
request, and not specifying HTTP POST for the request)
@return self
Update the HTTP method of the request