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.



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 392

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.



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 392

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.



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 392

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