PHP Class Kelpie\Server\Response

Inheritance: implements IteratorAggregat\IteratorAggregate
Datei anzeigen Open project: dhotson/kelpie Class Usage Examples

Public Methods

Method Description
__construct ( )
getIterator ( )
head ( ) Top header of the response, containing the status code and response headers.
headersOutput ( ) String representation of the headers to be sent in the response.
isPersistent ( )
persistent ( )
setBody ( $body )
setHeaders ( $headers ) array($key => $value) $key must be a string $value can be either an array, or a string separated by newlines
setStatus ( $status )

Method Details

__construct() public method

public __construct ( )

getIterator() public method

public getIterator ( )

head() public method

Top header of the response, containing the status code and response headers.
public head ( )

headersOutput() public method

String representation of the headers to be sent in the response.
public headersOutput ( )

isPersistent() public method

public isPersistent ( )

persistent() public method

public persistent ( )

setBody() public method

public setBody ( $body )

setHeaders() public method

array($key => $value) $key must be a string $value can be either an array, or a string separated by newlines
public setHeaders ( $headers )

setStatus() public method

public setStatus ( $status )