Class: Google::Cloud::NetworkServices::V1::HttpRoute::HeaderModifier

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/networkservices/v1/http_route.rb

Overview

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

Defined Under Namespace

Classes: AddEntry, SetEntry

Instance Attribute Summary collapse

Instance Attribute Details

#add::Google::Protobuf::Map{::String => ::String}

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



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 368

class HeaderModifier
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SetEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AddEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#remove::Array<::String>

Returns Remove headers (matching by header names) specified in the list.

Returns:

  • (::Array<::String>)

    Remove headers (matching by header names) specified in the list.



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 368

class HeaderModifier
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SetEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AddEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#set::Google::Protobuf::Map{::String => ::String}

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



368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 368

class HeaderModifier
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SetEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class AddEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end