SimpleHttpResponse::getHeaders PHP Method

getHeaders() public method

Accessor for header block. The response is the combination of this and the content.
public getHeaders ( ) : SimpleHttpHeaders
return SimpleHttpHeaders Wrapped header block.
    public function getHeaders()
    {
        return $this->headers;
    }

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::getHeaders