protocol-http 0.60.0 → 0.62.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 +8 -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 +2 -2
- 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: e9f4bf9ac69b32d6d157fd1398af71f7f6830d2a01ae7a97a9b8a7814e27721f
|
|
4
|
+
data.tar.gz: f9e814e1f3be6e12ff82b0d091c478cc87897eff1189eeba29e52e3b4f4c4d92
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 250ec533ff70f9df98815bfe61c98b87f0bbfdbdc77a83844c18a166baee156f5cdea46476fbc828accb2569a48c0a5647a63f5b6aec53e76f1e92b52e2301dd
|
|
7
|
+
data.tar.gz: 65d87fff6702f96fea8b90ca448e71ada4f652555d6386d2d99ba1ff7956a846851ffcbf087c9ffdae3a1feed303c9893211df4f954cac5f6209a90a75037bde
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/protocol/http/error.rb
CHANGED
|
@@ -9,6 +9,14 @@ module Protocol
|
|
|
9
9
|
class Error < StandardError
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
# Raised when an HTTP stream or request was refused before any processing occurred.
|
|
13
|
+
# In the case of requests, it indicates that the request was refused before any processing occurred, and can be safely retried.
|
|
14
|
+
class RefusedError < Error
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
# @deprecated Use {RefusedError} instead.
|
|
18
|
+
RequestRefusedError = RefusedError
|
|
19
|
+
|
|
12
20
|
# Represents a bad request error (as opposed to a server error).
|
|
13
21
|
# This is used to indicate that the request was malformed or invalid.
|
|
14
22
|
module BadRequest
|
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.61.0
|
|
34
|
+
|
|
35
|
+
- Introduce `Protocol::HTTP::RefusedError` for indicating a stream or request was refused before processing and can be safely retried. `RequestRefusedError` is provided as an alias for backwards compatibility.
|
|
36
|
+
|
|
33
37
|
### v0.60.0
|
|
34
38
|
|
|
35
39
|
- Expose `Protocol::HTTP::Body::Writable#count` attribute to provide access to the number of chunks written to the body.
|
|
@@ -82,12 +86,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http/relea
|
|
|
82
86
|
- Improve consistency of Body `#inspect`.
|
|
83
87
|
- Improve `as_json` support for Body wrappers.
|
|
84
88
|
|
|
85
|
-
### v0.52.0
|
|
86
|
-
|
|
87
|
-
- Add `Protocol::HTTP::Headers#to_a` method that returns the fields array, providing compatibility with standard Ruby array conversion pattern.
|
|
88
|
-
- Expose `tail` in `Headers.new` so that trailers can be accurately reproduced.
|
|
89
|
-
- Add agent context.
|
|
90
|
-
|
|
91
89
|
## See Also
|
|
92
90
|
|
|
93
91
|
- [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.61.0
|
|
4
|
+
|
|
5
|
+
- Introduce `Protocol::HTTP::RefusedError` for indicating a stream or request was refused before processing and can be safely retried. `RequestRefusedError` is provided as an alias for backwards compatibility.
|
|
6
|
+
|
|
3
7
|
## v0.60.0
|
|
4
8
|
|
|
5
9
|
- Expose `Protocol::HTTP::Body::Writable#count` attribute to provide access to the number of chunks written to the body.
|
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.
|
|
4
|
+
version: 0.62.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -135,7 +135,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
135
|
- !ruby/object:Gem::Version
|
|
136
136
|
version: '0'
|
|
137
137
|
requirements: []
|
|
138
|
-
rubygems_version: 4.0.
|
|
138
|
+
rubygems_version: 4.0.6
|
|
139
139
|
specification_version: 4
|
|
140
140
|
summary: Provides abstractions to handle HTTP protocols.
|
|
141
141
|
test_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|