Encodes the request into a string.
Creates a get request.
Parses a string and returns a Request. If the request is successfully parsed Request.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 post request.
Optional raw form data, for POST requests.
HTTP headers of the request.
Method used in the request (i.e. GET). Must be uppercase.
Path of the request. It should start with a slash.
If the request was parsed, indicates whether it was in a valid HTTP format.
Container for a HTTP request.