author Jorgen Evens
package WebLab
subpackage Http

 Methods

getForRequest()

getForRequest() 
Static

Get headers with the specified key

getHeader($key) : array

Parameters

$key

Returns

array

Get all headers that have been set

getHeaders() : array

Returns

array

Returns the response code.

getResponseCode() 

$return int

Set a header

setHeader(string $header, string $value) 

Parameters

$header

string

$value

string

Set responsecode

setResponseCode(int $code, string $text) : string

Parameters

$code

int

Responsecode to send

$text

string

Message for unknown HTTP status codes.

Returns

stringHTTP header that sets the status code.

 Properties

 

$_headers : array
 

$_request : \WebLab_Http_Headers
 

$_response_code : int
 

$_response_codes : array