# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier (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::HttpRoute::HeaderModifier.

The specification for modifying HTTP header in HTTP request and HTTP
response.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #add

    def add() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Add the headers with given map where key is the name of the header, value is the value of the header.

### #add=

    def add=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Add the headers with given map where key is the name of the header, value is the value of the header.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Add the headers with given map where key is the name of the header, value is the value of the header.

### #remove

    def remove() -> ::Array<::String>

**Returns**

- (::Array\<::String\>) --- Remove headers (matching by header names) specified in the list.

### #remove=

    def remove=(value) -> ::Array<::String>

**Parameter**

- **value** (::Array\<::String\>) --- Remove headers (matching by header names) specified in the list.
**Returns**

- (::Array\<::String\>) --- Remove headers (matching by header names) specified in the list.

### #set

    def set() -> ::Google::Protobuf::Map{::String => ::String}

**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.

### #set=

    def set=(value) -> ::Google::Protobuf::Map{::String => ::String}

**Parameter**

- **value** (::Google::Protobuf::Map{::String =\> ::String}) --- Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.
**Returns**

- (::Google::Protobuf::Map{::String =\> ::String}) --- Completely overwrite/replace the headers with given map where key is the name of the header, value is the value of the header.