http-protocol 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 671f05047ee2dfd7365a45589f83f27a0f097c6e0cb787b61e3569863c0c5db4
4
- data.tar.gz: fb4f399f497fd3480398522d2b7256800c04e99c944d0a2e00400335811c53b8
3
+ metadata.gz: 242ba5105135ba4ed2bff4ccef1e1a77fb416788fbf527eb6221de8eb0026225
4
+ data.tar.gz: 9bbcd87adf08d36f38b44d581a82243494a68adf66d6e63fb6e559de60bb6ac6
5
5
  SHA512:
6
- metadata.gz: 8b1c95fdac9a51fbbd9a285dd0619e7d463f668e85e5a5a4329e0eee5abd18e96cb911ff9311796d14ac36e8515f3803acd4758e73112e4f857cc60bd73b9e60
7
- data.tar.gz: ac491a301fe51695e6ac1efae9fe1e73fe13d4b9ad8eac87f43753d60107fbd57e20e5589422e25a7496849d793205cab37db4e501657a7cd82b3deca26496fc
6
+ metadata.gz: 9a57f0e967f1d74a52c04112eb8d617b974f836f5c898ced1846e29ead3e4fb3a82f503bf7926f8948920637de895ccd9aef7c54066410b2ba9e801cc962352d
7
+ data.tar.gz: 8bd4615ca2b519412ec0c164639af7dd99e005aaf3cae3f0b7aa8bfb64ba99d57fa12ff3adda731878017b4d2424fae4af0dab51873d9422b101c0aa4c36a1f5
@@ -20,10 +20,17 @@
20
20
 
21
21
  module HTTP
22
22
  module Protocol
23
- TRANSFER_ENCODING = 'transfer-encoding'.freeze
24
23
  CONTENT_LENGTH = 'content-length'.freeze
24
+
25
+ TRANSFER_ENCODING = 'transfer-encoding'.freeze
25
26
  CHUNKED = 'chunked'.freeze
26
27
 
28
+ CONNECTION = 'connection'.freeze
29
+ CLOSE = 'close'.freeze
30
+ KEEP_ALIVE = 'keep-alive'.freeze
31
+
32
+ HOST = 'host'.freeze
33
+
27
34
  class Headers
28
35
  class Split < Array
29
36
  COMMA = /\s*,\s*/
@@ -24,7 +24,6 @@ module HTTP
24
24
  module Protocol
25
25
  module HTTP10
26
26
  class Connection < HTTP11::Connection
27
- KEEP_ALIVE = 'keep-alive'.freeze
28
27
  VERSION = "HTTP/1.0".freeze
29
28
 
30
29
  def version
@@ -25,9 +25,6 @@ module HTTP
25
25
  module HTTP11
26
26
  class Connection
27
27
  CRLF = "\r\n".freeze
28
- CONNECTION = 'connection'.freeze
29
- HOST = 'host'.freeze
30
- CLOSE = 'close'.freeze
31
28
  VERSION = "HTTP/1.1".freeze
32
29
 
33
30
  def initialize(stream, persistent = true)
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module Protocol
23
- VERSION = "0.4.0"
23
+ VERSION = "0.5.0"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-protocol
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams