class HttpRequestContext extends Message

HTTP request data that is related to a reported error.

This data should be provided by the application when reporting an error, unless the error report has been generated automatically from Google App Engine logs.

Protobuf type Google\Devtools\Clouderrorreporting\V1beta1\HttpRequestContext

Methods

__construct()

No description

string
getMethod()

The type of HTTP request, such as GET, POST, etc.

setMethod(string $var)

The type of HTTP request, such as GET, POST, etc.

string
getUrl()

The URL of the request.

setUrl(string $var)

The URL of the request.

string
getUserAgent()

The user agent information that is provided with the request.

setUserAgent(string $var)

The user agent information that is provided with the request.

string
getReferrer()

The referrer information that is provided with the request.

setReferrer(string $var)

The referrer information that is provided with the request.

int
getResponseStatusCode()

The HTTP response status code for the request.

setResponseStatusCode(int $var)

The HTTP response status code for the request.

string
getRemoteIp()

The IP address from which the request originated.

setRemoteIp(string $var)

The IP address from which the request originated.

Details

at line 61
__construct()

at line 72
string getMethod()

The type of HTTP request, such as GET, POST, etc.

Generated from protobuf field string method = 1;

Return Value

string

at line 83
setMethod(string $var)

The type of HTTP request, such as GET, POST, etc.

Generated from protobuf field string method = 1;

Parameters

string $var

at line 95
string getUrl()

The URL of the request.

Generated from protobuf field string url = 2;

Return Value

string

at line 106
setUrl(string $var)

The URL of the request.

Generated from protobuf field string url = 2;

Parameters

string $var

at line 118
string getUserAgent()

The user agent information that is provided with the request.

Generated from protobuf field string user_agent = 3;

Return Value

string

at line 129
setUserAgent(string $var)

The user agent information that is provided with the request.

Generated from protobuf field string user_agent = 3;

Parameters

string $var

at line 141
string getReferrer()

The referrer information that is provided with the request.

Generated from protobuf field string referrer = 4;

Return Value

string

at line 152
setReferrer(string $var)

The referrer information that is provided with the request.

Generated from protobuf field string referrer = 4;

Parameters

string $var

at line 164
int getResponseStatusCode()

The HTTP response status code for the request.

Generated from protobuf field int32 response_status_code = 5;

Return Value

int

at line 175
setResponseStatusCode(int $var)

The HTTP response status code for the request.

Generated from protobuf field int32 response_status_code = 5;

Parameters

int $var

at line 190
string getRemoteIp()

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.

Generated from protobuf field string remote_ip = 6;

Return Value

string

at line 204
setRemoteIp(string $var)

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.

Generated from protobuf field string remote_ip = 6;

Parameters

string $var