Apigee Connect V1 API - Class Google::Cloud::ApigeeConnect::V1::HttpResponse (v0.7.0)

Reference documentation and code samples for the Apigee Connect V1 API class Google::Cloud::ApigeeConnect::V1::HttpResponse.

The proto definition of http response.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#body

def body() -> ::String
Returns
  • (::String) — The HTTP 1.1 response body.

#body=

def body=(value) -> ::String
Parameter
  • value (::String) — The HTTP 1.1 response body.
Returns
  • (::String) — The HTTP 1.1 response body.

#content_length

def content_length() -> ::Integer
Returns
  • (::Integer) — Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.

#content_length=

def content_length=(value) -> ::Integer
Parameter
  • value (::Integer) — Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.
Returns
  • (::Integer) — Content length records the length of the associated content. The value -1 indicates that the length is unknown. Unless http method is "HEAD", values >= 0 indicate that the given number of bytes may be read from Body.

#headers

def headers() -> ::Array<::Google::Cloud::ApigeeConnect::V1::Header>
Returns

#headers=

def headers=(value) -> ::Array<::Google::Cloud::ApigeeConnect::V1::Header>
Parameter
Returns

#id

def id() -> ::String
Returns
  • (::String) — A unique identifier that matches the request ID.

#id=

def id=(value) -> ::String
Parameter
  • value (::String) — A unique identifier that matches the request ID.
Returns
  • (::String) — A unique identifier that matches the request ID.

#status

def status() -> ::String
Returns
  • (::String) — Status of http response, e.g. "200 OK".

#status=

def status=(value) -> ::String
Parameter
  • value (::String) — Status of http response, e.g. "200 OK".
Returns
  • (::String) — Status of http response, e.g. "200 OK".

#status_code

def status_code() -> ::Integer
Returns
  • (::Integer) — Status code of http response, e.g. 200.

#status_code=

def status_code=(value) -> ::Integer
Parameter
  • value (::Integer) — Status code of http response, e.g. 200.
Returns
  • (::Integer) — Status code of http response, e.g. 200.