protocol-http1 0.38.0 → 0.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9b20437da24d1840f9eba2a6cd768d224b1279856db05b08d4dac174cc36d26f
4
- data.tar.gz: 1a0651bae0777c40bfbfee99b617492010e3c01e96c7fd7242f2a519d04c37d9
3
+ metadata.gz: 0e973bb5fe97e0766eccc257775e2549397eb1fa8f308851e653987e90f05d66
4
+ data.tar.gz: a688b1894c1eeb0dc5c0dd08eb40259b16e6e4b749d6d35939cd3468b5011393
5
5
  SHA512:
6
- metadata.gz: a22e2a5e9cf67e34e6577f1ec76c2be8a4b471f89bbeb01544e8bf9cfb2f5e1ed3b548d34b72af6b4769370f16a9f266d2a857d2196cba95a86fad2bc47ee3fe
7
- data.tar.gz: c9fe0c68fa411bacdb8219af302d5b3d042f8bf763e83936561dedce2a0a31136ad442188084d0830fb563fa4ec057c97dd9bdca64e80826ba17331fa5e472ff
6
+ metadata.gz: a2fb5ee2311c5536d3d3e75e609a7a577f69854dc5449a04755ac4a0efea07d042b5d0f13b4c42563ad1d762f1ffed421889ab29f1b3392bada9e0a03e314726
7
+ data.tar.gz: d9ad14658632916da00953025fac66e6644be9e1e9504d5ad7e5a2bd74577c7ea21ce2073194ff2e9034e865172b609da3f03323d52ff4176f70957f44a2cb4c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -258,7 +258,7 @@ module Protocol
258
258
  # @parameter target [String] the request target.
259
259
  # @parameter version [String] the HTTP version.
260
260
  # @parameter headers [Hash] the HTTP headers.
261
- # @raises [ProtocolError] if the connection is not in the idle state.
261
+ # @raises [RefusedError] if the request was not processed.
262
262
  def write_request(authority, method, target, version, headers)
263
263
  open!
264
264
 
@@ -267,7 +267,7 @@ module Protocol
267
267
 
268
268
  write_headers(headers)
269
269
  rescue
270
- raise ::Protocol::HTTP::RequestRefusedError
270
+ raise ::Protocol::HTTP::RefusedError
271
271
  end
272
272
 
273
273
  # Write a response to the connection. It is expected you will write the body after this method.
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP1
8
- VERSION = "0.38.0"
8
+ VERSION = "0.39.0"
9
9
  end
10
10
  end
data/readme.md CHANGED
@@ -30,6 +30,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-http1
30
30
 
31
31
  Please see the [project releases](https://socketry.github.io/protocol-http1/releases/index) for all releases.
32
32
 
33
+ ### v0.39.0
34
+
35
+ - Rename `RequestRefusedError` -\> `RefusedError`.
36
+
33
37
  ### v0.38.0
34
38
 
35
39
  - `write_request` now raises `Protocol::HTTP::RequestRefusedError` if the request line or headers cannot be written, indicating the request was not processed and can be safely retried.
@@ -68,11 +72,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http1/rele
68
72
 
69
73
  - Support high-byte characters in HTTP headers for improved international compatibility.
70
74
 
71
- ### v0.32.0
72
-
73
- - Fix header parsing to handle tab characters between values correctly.
74
- - Complete documentation coverage for all public APIs.
75
-
76
75
  ## Contributing
77
76
 
78
77
  We welcome contributions to this project.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.39.0
4
+
5
+ - Rename `RequestRefusedError` -\> `RefusedError`.
6
+
3
7
  ## v0.38.0
4
8
 
5
9
  - `write_request` now raises `Protocol::HTTP::RequestRefusedError` if the request line or headers cannot be written, indicating the request was not processed and can be safely retried.
data.tar.gz.sig CHANGED
Binary file
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.38.0
4
+ version: 0.39.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -49,14 +49,14 @@ dependencies:
49
49
  requirements:
50
50
  - - "~>"
51
51
  - !ruby/object:Gem::Version
52
- version: '0.61'
52
+ version: '0.62'
53
53
  type: :runtime
54
54
  prerelease: false
55
55
  version_requirements: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '0.61'
59
+ version: '0.62'
60
60
  executables: []
61
61
  extensions: []
62
62
  extra_rdoc_files: []
metadata.gz.sig CHANGED
Binary file