protocol-http1 0.28.0 → 0.29.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: fc8ca6665c69c40a8b356d22ba8657b0891f83136e82b16ce61ff5e26a24c50f
4
- data.tar.gz: ebd6f58a3ed6caf1eb95c8d38e89ad85df3d9b3eb177bc89192a3ffe0710eda0
3
+ metadata.gz: 9bb4702073bd3765421e3806d098c9d0e842f5a82497559ad242a282c4e67021
4
+ data.tar.gz: db6a5b8da784a1ed7b0273a3986138b27c558db89b6477eb27645dcbd6d2e0fb
5
5
  SHA512:
6
- metadata.gz: 8612d1fd87cdd97d558410b1c85275944d9c11d51b7a3455aba22c53527e33a12890a62a055bb7c721e25e88064c1fbd9547db26287b8a890ac7baa1c3a2b45e
7
- data.tar.gz: 50a8e5a03a1433c33d4cbc97dea073826741d89f68311f67de166aa85ce4be7a643828c059339fde50ebf147894f33974fdebd906dd2ed2860d30591f4b18a74
6
+ metadata.gz: 7cd9daa93a559f61419a767451733e75151a4e6ca38b28edd3241ef4ff33cee3878303ba7b5aca8d483016c3ca9b2fc48fdbf0a38be4b51c1b74cb511aaae569
7
+ data.tar.gz: 8b546aed69866e812d10c334aa546298516deb30e5acd7b47cee76fe27cf772b866486aee3350580c76105789a582c0a413e508194ba0146a3fc0f5c8ecb25f9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -286,11 +286,11 @@ module Protocol
286
286
  end
287
287
 
288
288
  def read_line?
289
- line = @stream.gets(CRLF, @maximum_line_length)
290
-
291
- unless line.chomp!(CRLF)
292
- # This basically means that the request line, response line, header, or chunked length line is too long.
293
- raise LineLengthError, "Line too long!"
289
+ if line = @stream.gets(CRLF, @maximum_line_length)
290
+ unless line.chomp!(CRLF)
291
+ # This basically means that the request line, response line, header, or chunked length line is too long.
292
+ raise LineLengthError, "Line too long!"
293
+ end
294
294
  end
295
295
 
296
296
  return line
@@ -330,7 +330,11 @@ module Protocol
330
330
 
331
331
  @count += 1
332
332
 
333
- return headers.delete(HOST), method, path, version, headers, body
333
+ if block_given?
334
+ yield headers.delete(HOST), method, path, version, headers, body
335
+ else
336
+ return headers.delete(HOST), method, path, version, headers, body
337
+ end
334
338
  end
335
339
 
336
340
  def read_response_line
@@ -366,7 +370,11 @@ module Protocol
366
370
  @count += 1
367
371
  end
368
372
 
369
- return version, status, reason, headers, body
373
+ if block_given?
374
+ yield version, status, reason, headers, body
375
+ else
376
+ return version, status, reason, headers, body
377
+ end
370
378
  end
371
379
 
372
380
  def read_headers
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP1
8
- VERSION = "0.28.0"
8
+ VERSION = "0.29.0"
9
9
  end
10
10
  end
data.tar.gz.sig CHANGED
@@ -1 +1,5 @@
1
- X��A�����#r��z�TxzN���&�qV/+�xndyC'��J�z�D��JDlx��|rv'6���/��P��y�7��[m/�z.�h��z3E^��v{��ޥ�o��7�Xqӗw����n�oAuXD�В��U��^�7՟��nPf_+�=�B���W%~�ÏM���~��g�r�OLv�_{�����q�C���7�z�a� �ls����9}�����g=8�A�<�����ǘܦ��rm��&:��9�=���g���:�Ҩ�Q�����������6U���Є]ʹv`�����z�
1
+ �\iy!�Դ��I��6*�
2
+ 3R���Ҁ&H�y��/�DkH~��f7$wV
3
+ ���0ܮ:��mj:�� ��H����f����������k*���c�+�-�UiKZ�,��/>9� ��C�_��Ҟ� 4k�hG��L�0�to�R��Aw���K�W����'][O�Gi>���!��!j3slD�)���l(Z�x"���[����f��K��4�.����ӡ�t�� ��<�#�6l�
4
+ 2{�׏�H��d�f��� ��+�"'��~���E���(��
5
+ �a*���
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0
4
+ version: 0.29.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -10,7 +10,6 @@ authors:
10
10
  - Brian Morearty
11
11
  - Bruno Sutic
12
12
  - Olle Jonsson
13
- autorequire:
14
13
  bindir: bin
15
14
  cert_chain:
16
15
  - |
@@ -42,7 +41,7 @@ cert_chain:
42
41
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
43
42
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
44
43
  -----END CERTIFICATE-----
45
- date: 2024-10-15 00:00:00.000000000 Z
44
+ date: 2025-01-28 00:00:00.000000000 Z
46
45
  dependencies:
47
46
  - !ruby/object:Gem::Dependency
48
47
  name: protocol-http
@@ -58,8 +57,6 @@ dependencies:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
59
  version: '0.22'
61
- description:
62
- email:
63
60
  executables: []
64
61
  extensions: []
65
62
  extra_rdoc_files: []
@@ -80,7 +77,6 @@ licenses:
80
77
  metadata:
81
78
  documentation_uri: https://socketry.github.io/protocol-http1/
82
79
  source_code_uri: https://github.com/socketry/protocol-http1.git
83
- post_install_message:
84
80
  rdoc_options: []
85
81
  require_paths:
86
82
  - lib
@@ -95,8 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
91
  - !ruby/object:Gem::Version
96
92
  version: '0'
97
93
  requirements: []
98
- rubygems_version: 3.5.11
99
- signing_key:
94
+ rubygems_version: 3.6.2
100
95
  specification_version: 4
101
96
  summary: A low level implementation of the HTTP/1 protocol.
102
97
  test_files: []
metadata.gz.sig CHANGED
Binary file