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.
Encodes the request into a string.
Creates a get request.
Creates a post request.
Path of the request. It should start with a slash.
Method used.
Headers of the request/response.
Container for a HTTP request.