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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http/error.rb +5 -0
- data/lib/protocol/http/version.rb +1 -1
- data/readme.md +4 -6
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 92d72520175c17717320ecbee394b356a159c22d825f2b4e9c5cb5ef93aa2fed
|
|
4
|
+
data.tar.gz: d0fb84ab33b22734ef0aa72a0d1c5f3af36011106154e415aa1d9aed8f84c570
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4ef6e02a8dc285cf609e5c5be4b3d0d214a4fa6a13e2a270ffbe49935e4253473cfe189d854bdd7c886fee802f5bba08710afe831ef601e0ea30051292b1987
|
|
7
|
+
data.tar.gz: 3986994c21ef7bafc0606f3b07f21678bddff510389bb4edd1111d79e10e702638002f1b5577d20cfac1a1c1a67144fc2ab0808d71ece4866dd3065b847d7a0d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/protocol/http/error.rb
CHANGED
|
@@ -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
|
|
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
metadata.gz.sig
CHANGED
|
Binary file
|