protocol-http 0.65.0 → 0.66.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: b17dbce0da66e6f9093d1e3e6a3cebbe8e666a7fd9f5e002dc41f9de427d8415
4
- data.tar.gz: 07aa35d8c33d720d9f00c95228f2d2d88a755a5aad9d1f8e652967a2e88080a4
3
+ metadata.gz: 92d72520175c17717320ecbee394b356a159c22d825f2b4e9c5cb5ef93aa2fed
4
+ data.tar.gz: d0fb84ab33b22734ef0aa72a0d1c5f3af36011106154e415aa1d9aed8f84c570
5
5
  SHA512:
6
- metadata.gz: c976e4a859e43de63ca1ee55eaced96ff4122e167a806f95a9e6b001de0fcfcece9132915e6004c14249b57b539a1f7add64411747f402bd4a9e8ecaf5120242
7
- data.tar.gz: dc9422aaf8a88c83c477c8ad2e35a3e88b7de37d2b6b2d7636dec9ea6b88860c35b100214727b6baafed1175aa96e1366223e6dbe2a725adaf7600d5350d4a49
6
+ metadata.gz: d4ef6e02a8dc285cf609e5c5be4b3d0d214a4fa6a13e2a270ffbe49935e4253473cfe189d854bdd7c886fee802f5bba08710afe831ef601e0ea30051292b1987
7
+ data.tar.gz: 3986994c21ef7bafc0606f3b07f21678bddff510389bb4edd1111d79e10e702638002f1b5577d20cfac1a1c1a67144fc2ab0808d71ece4866dd3065b847d7a0d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -14,6 +14,11 @@ module Protocol
14
14
  class RefusedError < Error
15
15
  end
16
16
 
17
+ # Raised when the remote endpoint fails while processing an HTTP stream or request.
18
+ # This error does not indicate whether application processing occurred. Where available, the protocol-specific error should be attached as the cause.
19
+ class RemoteError < Error
20
+ end
21
+
17
22
  # @deprecated Use {RefusedError} instead.
18
23
  RequestRefusedError = RefusedError
19
24
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.65.0"
8
+ VERSION = "0.66.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-http/
30
30
 
31
31
  Please see the [project releases](https://socketry.github.io/protocol-http/releases/index) for all releases.
32
32
 
33
+ ### v0.66.0
34
+
35
+ - Introduce `Protocol::HTTP::RemoteError` for remote endpoint failures where application processing may have occurred.
36
+
33
37
  ### v0.65.0
34
38
 
35
39
  - Improve `Accept` header parsing for quoted pairs, malformed parameters, invalid wildcards, and invalid quality factors.
@@ -70,12 +74,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http/relea
70
74
  - Introduce `Headers#header` method to enumerate only the main headers, excluding trailers. This can be used after invoking `Headers#trailer!` to avoid race conditions.
71
75
  - Fix `Headers#to_h` so that indexed headers are not left in an inconsistent state if errors occur during processing.
72
76
 
73
- ### v0.57.0
74
-
75
- - Always use `#parse` when parsing header values from strings to ensure proper normalization and validation.
76
- - Introduce `Protocol::HTTP::InvalidTrailerError` which is raised when a trailer header is not allowed by the current policy.
77
- - **Breaking**: `Headers#each` now yields parsed values according to the current policy. For the previous behaviour, use `Headers#fields`.
78
-
79
77
  ## See Also
80
78
 
81
79
  - [protocol-http1](https://github.com/socketry/protocol-http1) — HTTP/1 client/server implementation using this
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v0.66.0
4
+
5
+ - Introduce `Protocol::HTTP::RemoteError` for remote endpoint failures where application processing may have occurred.
6
+
3
7
  ## v0.65.0
4
8
 
5
9
  - Improve `Accept` header parsing for quoted pairs, malformed parameters, invalid wildcards, and invalid quality factors.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.65.0
4
+ version: 0.66.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file