Class: Protocol::HTTP::Header::Trailer
- Defined in:
- lib/protocol/http/header/trailer.rb
Overview
Represents headers that can contain multiple distinct values separated by commas.
This isn’t a specific header class is a utility for handling headers with comma-separated values, such as ‘accept`, `cache-control`, and other similar headers. The values are split and stored as an array internally, and serialized back to a comma-separated string when needed.
Constant Summary
Constants inherited from Split
Class Method Summary collapse
-
.trailer? ⇒ Boolean
Whether this header is acceptable in HTTP trailers.
Methods inherited from Split
#<<, coerce, #initialize, parse, #to_s
Constructor Details
This class inherits a constructor from Protocol::HTTP::Header::Split
Class Method Details
.trailer? ⇒ Boolean
Whether this header is acceptable in HTTP trailers.
17 18 19 |
# File 'lib/protocol/http/header/trailer.rb', line 17 def self.trailer? false end |