Implements: Kohana_HTTP_Request | Kohana_HTTP_Message | HTTP_Message
An HTTP Request specific interface that adds the methods required by HTTP requests. Over and above Kohana_HTTP_Interaction, this interface provides method, uri, get and post methods.
Class declared in SYSPATH/classes/HTTP/Request.php on line 3.
string(3) "GET"string(4) "POST"string(3) "PUT"string(6) "DELETE"string(4) "HEAD"string(7) "OPTIONS"string(5) "TRACE"string(7) "CONNECT"Gets or sets the HTTP method. Usually GET, POST, PUT or DELETE in traditional CRUD applications.
string|null
$method
= NULL - Method to use for this request mixedpublic function method($method = null);
Gets or sets HTTP POST parameters to the request.
mixed
$key
= NULL - Key or key value pairs to set string|null
$value
= NULL - Value to set to a key mixedpublic function post($key = null, $value = null);
Gets or sets HTTP query string.
mixed
$key
= NULL - Key or key value pairs to set string|null
$value
= NULL - Value to set to a key mixedpublic function query($key = null, $value = null);
Gets the URI of this request.
stringpublic function uri();
Gets or sets the HTTP body to the request or response. The body is included after the header, separated by a single empty new line.
string|null
$content
= NULL - Content to set to the object string|voidpublic function body($content = null);
Gets or sets HTTP headers to the request or response. All headers are included immediately after the HTTP protocol definition during transmission. This method provides a simple array or key/value interface to the headers.
mixed
$key
= NULL - Key or array of key/value pairs to set string|null
$value
= NULL - Value to set to the supplied key mixedpublic function headers($key = null, $value = null);
Gets or sets the HTTP protocol. The standard protocol to use
is HTTP/1.1.
string|null
$protocol
= NULL - Protocol to set to the request/response mixedpublic function protocol($protocol = null);
Renders the HTTP_Interaction to a string, producing
stringpublic function render();