Exception: Protocol::HTTP::InvalidTrailerError

Inherits:
Error
  • Object
show all
Includes:
BadRequest
Defined in:
lib/protocol/http/error.rb

Overview

Raised when an invalid trailer header is encountered in headers.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ InvalidTrailerError

Returns a new instance of InvalidTrailerError.



64
65
66
# File 'lib/protocol/http/error.rb', line 64

def initialize(key)
	super("Invalid trailer key: #{key.inspect}")
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



69
70
71
# File 'lib/protocol/http/error.rb', line 69

def key
  @key
end

#key The trailer key that is invalid.(Thetrailerkeythatisinvalid.) ⇒ Object (readonly)



69
# File 'lib/protocol/http/error.rb', line 69

attr :key