Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 2 is no longer supported by the community. We recommend that you migrate Python 2 apps to Python 3.

The HttpRequestState Class

The HttpRequestState class requests state information about an HTTP request.

Note: This class does not represent information, such as query strings and HTTP version, that is not permitted in Google Protocol RPC URLs. It does include the properties listed below, as well as server name and port, request ip, and remote host-name (if applicable).

HttpRequestState has the following properties:

wsgi.headers.Headers instance of HTTP request headers.
The HTTP method (GET, POST, etc.) as a string.
Path on an HTTP service where the service is mounted. This path does not include the remote method name.