protocol-http 0.60.0 → 0.61.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 +4 -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: e6d9c6ec1ad76ece9ce8c4224638dd9b6ca28396de3d987d66c11cc4bd67f1d1
|
|
4
|
+
data.tar.gz: 6a1e7f875bcde396e3596278f0e99dbf3dceab1b0466c4e8ef36c483830eb71c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1408f7ca40c1c8ee3ac9593eafabe57577d390e3fdf3c37ea0f7941bc5c746ddc2da2b490da7abf6b2bf4aca852c600aae4ac7637e2768ac591943df8c52370f
|
|
7
|
+
data.tar.gz: ae69c4ddce77d7b259e8ff0998cd510bfeb9c7e5d32f1f28794200c07f89ed8197345174087980e7d902ea1b38b4fdb26fa6357b92d1ab9b29a91b073d6e2e68
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/protocol/http/error.rb
CHANGED
|
@@ -9,6 +9,10 @@ module Protocol
|
|
|
9
9
|
class Error < StandardError
|
|
10
10
|
end
|
|
11
11
|
|
|
12
|
+
# Raised when a request was not processed by the server and can be safely retried, even for non-idempotent methods.
|
|
13
|
+
class RequestRefusedError < Error
|
|
14
|
+
end
|
|
15
|
+
|
|
12
16
|
# Represents a bad request error (as opposed to a server error).
|
|
13
17
|
# This is used to indicate that the request was malformed or invalid.
|
|
14
18
|
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::RequestRefusedError` for indicating a request was not processed by the server and can be safely retried.
|
|
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::RequestRefusedError` for indicating a request was not processed by the server and can be safely retried.
|
|
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.61.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
|