Class HTTPContext (1.5.3)

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

NameDescription
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.