Exception: Protocol::HTTP::InvalidTrailerError
- Includes:
- BadRequest
- Defined in:
- lib/protocol/http/error.rb
Overview
Raised when an invalid trailer header is encountered in headers.
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
- #key The trailer key that is invalid.(Thetrailerkeythatisinvalid.) ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(key) ⇒ InvalidTrailerError
constructor
A new instance of InvalidTrailerError.
Constructor Details
#initialize(key) ⇒ InvalidTrailerError
Returns a new instance of InvalidTrailerError.
35 36 37 |
# File 'lib/protocol/http/error.rb', line 35 def initialize(key) super("Invalid trailer key: #{key.inspect}") end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
40 41 42 |
# File 'lib/protocol/http/error.rb', line 40 def key @key end |
#key The trailer key that is invalid.(Thetrailerkeythatisinvalid.) ⇒ Object (readonly)
40 |
# File 'lib/protocol/http/error.rb', line 40 attr :key |