# Apigee Connect V1 API - Class Google::Cloud::ApigeeConnect::V1::HttpResponse (v1.6.0)

1.6.0 (latest) 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.7.0 0.6.2 0.5.0 0.4.0 0.3.0 0.2.0 0.1.4 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**

- (::Array\<[::Google::Cloud::ApigeeConnect::V1::Header](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Header)\>) --- The HTTP response headers.

### #headers=

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

**Parameter**

- **value** (::Array\<[::Google::Cloud::ApigeeConnect::V1::Header](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Header)\>) --- The HTTP response headers.
**Returns**

- (::Array\<[::Google::Cloud::ApigeeConnect::V1::Header](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-apigee_connect-v1/latest/Google-Cloud-ApigeeConnect-V1-Header)\>) --- The HTTP response headers.

### #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.