# Cloud Run V2 API - Class Google::Cloud::Run::V2::HTTPGetAction (v0.29.0)

0.29.0 (latest) 0.28.1 0.27.0 0.26.0 0.25.0 0.24.1 0.23.0 0.22.1 0.21.0 0.20.0 0.19.0 0.18.0 0.17.0 0.16.1 0.15.0 0.14.0 0.13.2 0.12.0 0.11.0 0.10.1 0.9.1 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Run V2 API class Google::Cloud::Run::V2::HTTPGetAction.

HTTPGetAction describes an action based on HTTP Get requests.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #http_headers

    def http_headers() -> ::Array<::Google::Cloud::Run::V2::HTTPHeader>

**Returns**

- (::Array\<[::Google::Cloud::Run::V2::HTTPHeader](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/Google-Cloud-Run-V2-HTTPHeader)\>) --- Optional. Custom headers to set in the request. HTTP allows repeated headers.

### #http_headers=

    def http_headers=(value) -> ::Array<::Google::Cloud::Run::V2::HTTPHeader>

**Parameter**

- **value** (::Array\<[::Google::Cloud::Run::V2::HTTPHeader](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/Google-Cloud-Run-V2-HTTPHeader)\>) --- Optional. Custom headers to set in the request. HTTP allows repeated headers.
**Returns**

- (::Array\<[::Google::Cloud::Run::V2::HTTPHeader](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-run-v2/latest/Google-Cloud-Run-V2-HTTPHeader)\>) --- Optional. Custom headers to set in the request. HTTP allows repeated headers.

### #path

    def path() -> ::String

**Returns**

- (::String) --- Optional. Path to access on the HTTP server. Defaults to '/'.

### #path=

    def path=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Path to access on the HTTP server. Defaults to '/'.
**Returns**

- (::String) --- Optional. Path to access on the HTTP server. Defaults to '/'.

### #port

    def port() -> ::Integer

**Returns**

- (::Integer) --- Optional. Port number to access on the container. Must be in the range 1 to

  1. If not specified, defaults to the exposed port of the container, which is the value of container.ports\[0\].containerPort.

### #port=

    def port=(value) -> ::Integer

**Parameter**

- **value** (::Integer) ---

  Optional. Port number to access on the container. Must be in the range 1 to
  1. If not specified, defaults to the exposed port of the container, which is the value of container.ports\[0\].containerPort.
**Returns**

- (::Integer) --- Optional. Port number to access on the container. Must be in the range 1 to

  1. If not specified, defaults to the exposed port of the container, which is the value of container.ports\[0\].containerPort.