lib/http/protocol/headers.rb in http-protocol-0.4.0 vs lib/http/protocol/headers.rb in http-protocol-0.5.0
- old
+ new
@@ -18,12 +18,19 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
module HTTP
module Protocol
- TRANSFER_ENCODING = 'transfer-encoding'.freeze
CONTENT_LENGTH = 'content-length'.freeze
+
+ TRANSFER_ENCODING = 'transfer-encoding'.freeze
CHUNKED = 'chunked'.freeze
+
+ CONNECTION = 'connection'.freeze
+ CLOSE = 'close'.freeze
+ KEEP_ALIVE = 'keep-alive'.freeze
+
+ HOST = 'host'.freeze
class Headers
class Split < Array
COMMA = /\s*,\s*/