# Class HTTPContext (1.16.0)

1.16.0 (latest) 1.15.0 1.14.0 1.13.0 1.12.0 1.11.1 1.10.0 1.9.2 1.8.2 1.7.0 1.6.3 1.5.3 1.4.1 1.3.0 1.2.3 1.1.2 1.0.0 0.34.0 0.33.0 0.32.1

    HTTPContext(
        method=None,
        url=None,
        user_agent=None,
        referrer=None,
        response_status_code=None,
        remote_ip=None,
    )

HTTPContext defines an object that captures the parameter for the
httpRequest part of Error Reporting API

| ## Parameters ||
|---|---|
| **Name** | **Description** |
| `method` | `str` The type of HTTP request, such as GET, POST, etc. |
| `url` | `str` The URL of the request |
| `user_agent` | `str` The user agent information that is provided with the request. |
| `referrer` | `str` The referrer information that is provided with the request. |
| `response_status_code` | `int` The HTTP response status code for the request. |
| `remote_ip` | `str` The IP address from which the request originated. This can be IPv4, IPv6, or a token which is derived from the IP address, depending on the data that has been provided in the error report. |