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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86fc99bdf4478ab27c254aaf2c08879a76a7179d2f05979c022d7d9dd4149f7f
4
- data.tar.gz: ef2431fbfddafb860028590fd5bfe641b3b7261e7beed8d5cdefea202b1423f6
3
+ metadata.gz: e6d9c6ec1ad76ece9ce8c4224638dd9b6ca28396de3d987d66c11cc4bd67f1d1
4
+ data.tar.gz: 6a1e7f875bcde396e3596278f0e99dbf3dceab1b0466c4e8ef36c483830eb71c
5
5
  SHA512:
6
- metadata.gz: 4169ced46a030ec0d90e4ae0711dabd4663ddc7f1c51a5f8687a3eee30d23754df5c537f19533d350681f03196403e3501bd568d3c3526c465c5760ca2939fce
7
- data.tar.gz: 88f2b94a09f2ce2c9b3815e609056d7ae45c4e657455abc48073d5f6b61aca6ae4d6dd3ad7104a0e576abfdea1c7fff2f5f838ba11fa398ed40c041bc913f6c8
6
+ metadata.gz: 1408f7ca40c1c8ee3ac9593eafabe57577d390e3fdf3c37ea0f7941bc5c746ddc2da2b490da7abf6b2bf4aca852c600aae4ac7637e2768ac591943df8c52370f
7
+ data.tar.gz: ae69c4ddce77d7b259e8ff0998cd510bfeb9c7e5d32f1f28794200c07f89ed8197345174087980e7d902ea1b38b4fdb26fa6357b92d1ab9b29a91b073d6e2e68
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.60.0"
8
+ VERSION = "0.61.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.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.60.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.3
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