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