getHeaders() public method

public getHeaders ( ) : array
return array
Exemplo n.º 1
0
 /**
  * Returns a HTTP status line with headers from specified response.
  *
  * @param Response $response
  * @return string HTTP status line.
  */
 public static function formatAsStatusWithHeadersString(Response $response)
 {
     $headers = self::formatHeadersForCurl($response->getHeaders());
     array_unshift($headers, self::formatAsStatusString($response));
     return join("\r\n", $headers) . "\r\n\r\n";
 }