Encodes the response into a string. The Content-Length header field is created automatically based on the length of the content field.
Creates a response for an HTTP error an automatically generates an HTML page to display it.
Parses a string and returns a Response. If the response is successfully parsed Response.valid will be true. Please note that every key in the header is converted to lowercase for an easier search in the associative array.
Creates a 3xx redirect response and adds the Location field to the header. If not specified status code 301 Moved Permanently will be used.
Content of the request. Its type should be specified in the content-type field in the headers.
HTTP headers of the request.
Status of the response.
If the response was parsed, indicates whether it was in a valid HTTP format.
Container for an HTTP response.