This class is a transparent base class for HTTP_Message and should not be accessed directly.
The HTTP Interaction interface providing the core HTTP methods that should be implemented by any HTTP request or response class.
Class declared in SYSPATH/classes/Kohana/HTTP/Message.php on line 14.
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
$content
= NULL - Content to set to the object string
void
public 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
$value
= NULL - Value to set to the supplied key mixed
public function headers($key = null, $value = null);
Gets or sets the HTTP protocol. The standard protocol to use
is HTTP/1.1
.
string
$protocol
= NULL - Protocol to set to the request/response mixed
public function protocol($protocol = null);
Renders the HTTP_Interaction to a string, producing
string
public function render();