# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch (v2.10.1)

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.0 Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch.

A match against a collection of headers.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #key

    def key() -> ::String

**Returns**

- (::String) --- Required. The key of the header.

### #key=

    def key=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The key of the header.
**Returns**

- (::String) --- Required. The key of the header.

### #type

    def type() -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type

**Returns**

- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-HeaderMatch-Type)) --- Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

### #type=

    def type=(value) -> ::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-HeaderMatch-Type)) --- Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::HeaderMatch::Type](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-HeaderMatch-Type)) --- Optional. Specifies how to match against the value of the header. If not specified, a default value of EXACT is used.

### #value

    def value() -> ::String

**Returns**

- (::String) --- Required. The value of the header.

### #value=

    def value=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The value of the header.
**Returns**

- (::String) --- Required. The value of the header.