copy_get()
Copies the request and environment object, but turning this request into a GET along the way. If this was a POST request (or any other verb) then it becomes GET, and the request body is thrown away.
date
Gets and sets the Date header (HTTP spec section 14.8). Converts it using HTTP date.
classmethod from_bytes(b)
Create a request from HTTP bytes data. If the bytes contain extra data after the request, raise a ValueError.
classmethod from_file(fp)
Read a request from a file-like object (it must implement .read(size) and
.readline()).
It will read up to the end of the request, not the end of the file (unless the request is a POST or PUT and has no Content-Length, in that case, the entire file is read).
This reads the request as represented by str(req); it may not read every valid HTTP request properly.
get_response(application, catch_exc_info=False)
Like .call_application(application), except returns a response object with
.status, .headers, and .body attributes.
This will use self.ResponseClass to figure out the class of the response object to return.
headers
All the request headers as a case-insensitive dictionary-like object.
host
Host name provided in HTTP_HOST, with fall-back to SERVER_NAME
host_port
The effective server port number as a string. If the HTTP_HOST header exists in the WSGI environ, this attribute returns the port number present in that header. If the HTTP_HOST header exists but contains no explicit port number: if the WSGI url scheme is “https” , this attribute returns “443”, if the WSGI url scheme is “http”, this attribute returns “80” . If no HTTP_HOST header is present in the environ at all, this attribute will return the value of the SERVER_PORT header (which is guaranteed to be present).
host_url
The URL through the host (no path)