HTTP Request information
This object can be used to easily access information about an HTTP request. It can additionally be used to create 'mock' requests.
This class mostly operates indepentend, but because of the nature of a single request per run it can operate as a singleton. For more information check out the behaviour around 'defaultInputStream'.
Located in /sources_custom/Sabre/HTTP/Request.php (line 19)
This will be set as the 'default' inputStream for a specific HTTP request We sometimes need to retain, or rebuild this if we need multiple runs of parsing the original HTTP request.
The request body, if any.
This is stored in the form of a stream resource.
PHP's $_SERVER data
Sets up the object
The serverData array can be used to override usage of PHP's global _SERVER variable.
Will return protocol + the hostname + the uri
Returns the HTTP request body body
This method returns a readable stream resource. If the asString parameter is set to true, a string is sent instead.
Returns the value for a specific http header.
This method returns null if the header did not exist.
Returns all (known) HTTP headers.
All headers are converted to lower-case, and additionally all underscores are automatically converted to dashes
Returns the HTTP request method
This is for example POST or GET
Returns everything after the ? from the current url
Returns a specific item from the _SERVER array.
Do not rely on this feature, it is for internal use only.
Returns the requested uri
Sets the contents of the HTTP requet body
This method can either accept a string, or a readable stream resource.
If the setAsDefaultInputStream is set to true, it means for this run of the script the supplied body will be used instead of php://input.
Documentation generated on Sun, 02 Jan 2011 23:23:45 +0000 by phpDocumentor 1.4.3