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.
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.
Status of the response.
If the response was parsed, indicates whether it was in a valid HTTP format.
Method used.
Headers of the request/response.
Container for an HTTP response.