SimpleHttpResponse::getMethod PHP Method

getMethod() public method

Original request method.
public getMethod ( ) : string
return string GET, POST or HEAD.
    public function getMethod()
    {
        return $this->encoding->getMethod();
    }

Usage Example

示例#1
0
 /**
  *    Extracts all of the response information.
  *    @param SimpleHttpResponse $response    Response being parsed.
  *    @access private
  */
 protected function extractResponse($response)
 {
     $this->transport_error = $response->getError();
     $this->raw = $response->getContent();
     $this->sent = $response->getSent();
     $this->headers = $response->getHeaders();
     $this->method = $response->getMethod();
     $this->url = $response->getUrl();
     $this->request_data = $response->getRequestData();
 }
All Usage Examples Of SimpleHttpResponse::getMethod