public sealed class HttpRequestContext : IMessage<HttpRequestContext>, IEquatable<HttpRequestContext>, IDeepCloneable<HttpRequestContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class HttpRequestContext.
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.
Implements
IMessageHttpRequestContext, IEquatableHttpRequestContext, IDeepCloneableHttpRequestContext, IBufferMessage, IMessageNamespace
Google.Cloud.ErrorReporting.V1Beta1Assembly
Google.Cloud.ErrorReporting.V1Beta1.dll
Constructors
HttpRequestContext()
public HttpRequestContext()
HttpRequestContext(HttpRequestContext)
public HttpRequestContext(HttpRequestContext other)
Parameter | |
---|---|
Name | Description |
other |
HttpRequestContext |
Properties
Method
public string Method { get; set; }
The type of HTTP request, such as GET
, POST
, etc.
Property Value | |
---|---|
Type | Description |
string |
Referrer
public string Referrer { get; set; }
The referrer information that is provided with the request.
Property Value | |
---|---|
Type | Description |
string |
RemoteIp
public string RemoteIp { get; set; }
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.
Property Value | |
---|---|
Type | Description |
string |
ResponseStatusCode
public int ResponseStatusCode { get; set; }
The HTTP response status code for the request.
Property Value | |
---|---|
Type | Description |
int |
Url
public string Url { get; set; }
The URL of the request.
Property Value | |
---|---|
Type | Description |
string |
UserAgent
public string UserAgent { get; set; }
The user agent information that is provided with the request.
Property Value | |
---|---|
Type | Description |
string |