GoogleApi.ServiceControl.V2.Model.Response (google_api_service_control v0.37.2) View Source

This message defines attributes for a typical network response. It generally models semantics of an HTTP response.

Attributes

  • backendLatency (type: String.t, default: nil) - The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.
  • code (type: String.t, default: nil) - The HTTP response status code, such as 200 and 404.
  • headers (type: map(), default: nil) - The HTTP response headers. If multiple headers share the same key, they must be merged according to HTTP spec. All header keys must be lowercased, because HTTP header keys are case-insensitive.
  • size (type: String.t, default: nil) - The HTTP response size in bytes. If unknown, it must be -1.
  • time (type: DateTime.t, default: nil) - The timestamp when the destination service sends the last byte of the response.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.ServiceControl.V2.Model.Response{
  backendLatency: String.t() | nil,
  code: String.t() | nil,
  headers: map() | nil,
  size: String.t() | nil,
  time: DateTime.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.