Child classes:
- Sabre_HTTP_ResponseMock
- Sabre_HTTP_Response
Inherited Variables
Inherited Constants
Inherited Methods
Class Details
Sabre_HTTP_Response
Tags:
- author - Evert Pot (http://www.rooftopsolutions.nl/)
- copyright - Copyright (C) 2007-2010 Rooftop Solutions. All rights reserved.
- license - Modified BSD License
[ Top ]
Class Variables
Class Methods
getStatusMessage
string getStatusMessage(
int
$code)
[line 20]
Returns a full HTTP status message for an HTTP status code
Tags:
- access - public
Parameters:
- int $code -
[ Top ]
sendBody
void sendBody(
mixed
$body)
[line 129]
Sends the entire response body
This method can accept either an open filestream, or a string. Note that this method will first rewind the stream before output.
Tags:
- access - public
Overridden in child classes as:
Parameters:
- mixed $body -
[ Top ]
sendStatus
void sendStatus(
int
$code)
[line 81]
Sends an HTTP status header to the client
Tags:
- access - public
Overridden in child classes as:
Parameters:
- int $code - HTTP status code
[ Top ]
setHeader
void setHeader(
string
$name, string
$value, [
$replace = true])
[line 96]
Sets an HTTP header for the response
Tags:
- access - public
Overridden in child classes as:
Parameters:
- string $name -
- string $value -
- $replace -
[ Top ]
setHeaders
void setHeaders(
$headers)
[line 113]
Sets a bunch of HTTP Headers
headersnames are specified as keys, value in the array value
Tags:
- access - public
Parameters:
- array $headers -
[ Top ]