Class Thin::Headers
In: lib/thin/headers.rb
Parent: Object

Store HTTP header name-value pairs direcly to a string and allow duplicated entries on some names.

Methods

[]=   has_key?   new   to_s  

Constants

HEADER_FORMAT = "%s: %s\r\n".freeze
ALLOWED_DUPLICATES = %w(set-cookie set-cookie2 warning www-authenticate).freeze

Public Class methods

Public Instance methods

Add key: value pair to the headers. Ignore if already sent and no duplicates are allowed for this key.

[Validate]