Cloud Logging API - Class Google::Cloud::Logging::Entry::HttpRequest (v2.3.0)

Reference documentation and code samples for the Cloud Logging API class Google::Cloud::Logging::Entry::HttpRequest.

Http Request

HTTP request data associated with a log entry.

See also #http_request.

Inherits

  • Object

Methods

#cache_hit

def cache_hit()

Whether an entity was served from cache (with or without validation). (Boolean)

#cache_hit=

def cache_hit=(value)

Whether an entity was served from cache (with or without validation). (Boolean)

#method

def method()
Overloads
def method()
Deprecated. Use #request_method instead.

The request method. Examples: "GET", "HEAD", "PUT", "POST". (String)

#method=

def method()
Overloads
def method()
Deprecated. Use #request_method= instead.

The request method. Examples: "GET", "HEAD", "PUT", "POST". (String)

#referer

def referer()

The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. (String)

#referer=

def referer=(value)

The referer URL of the request, as defined in HTTP/1.1 Header Field Definitions. (String)

#remote_ip

def remote_ip()

The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". (String)

#remote_ip=

def remote_ip=(value)

The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: "192.168.1.1", "FE80::0202:B3FF:FE1E:8329". (String)

#request_method

def request_method()

The request method. Examples: "GET", "HEAD", "PUT", "POST". (String)

#request_method=

def request_method=(value)

The request method. Examples: "GET", "HEAD", "PUT", "POST". (String)

#response_size

def response_size()

The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. (Integer)

#response_size=

def response_size=(value)

The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body. (Integer)

#size

def size()

The size of the HTTP request message in bytes, including the request headers and the request body. (Integer)

#size=

def size=(value)

The size of the HTTP request message in bytes, including the request headers and the request body. (Integer)

#status

def status()

The response code indicating the status of response. Examples: 200, 404. (Integer)

#status=

def status=(value)

The response code indicating the status of response. Examples: 200, 404. (Integer)

#url

def url()

The URL. The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: "http://example.com/some/info?color=red";. (String)

#url=

def url=(value)

The URL. The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: "http://example.com/some/info?color=red";. (String)

#user_agent

def user_agent()

The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)". (String)

#user_agent=

def user_agent=(value)

The user agent sent by the client. Example: "Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)". (String)

#validated

def validated()

Whether the response was validated with the origin server before being served from cache. This field is only meaningful if cache_hit is true. (Boolean)

#validated=

def validated=(value)

Whether the response was validated with the origin server before being served from cache. This field is only meaningful if cache_hit is true. (Boolean)