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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86fc99bdf4478ab27c254aaf2c08879a76a7179d2f05979c022d7d9dd4149f7f
4
- data.tar.gz: ef2431fbfddafb860028590fd5bfe641b3b7261e7beed8d5cdefea202b1423f6
3
+ metadata.gz: e9f4bf9ac69b32d6d157fd1398af71f7f6830d2a01ae7a97a9b8a7814e27721f
4
+ data.tar.gz: f9e814e1f3be6e12ff82b0d091c478cc87897eff1189eeba29e52e3b4f4c4d92
5
5
  SHA512:
6
- metadata.gz: 4169ced46a030ec0d90e4ae0711dabd4663ddc7f1c51a5f8687a3eee30d23754df5c537f19533d350681f03196403e3501bd568d3c3526c465c5760ca2939fce
7
- data.tar.gz: 88f2b94a09f2ce2c9b3815e609056d7ae45c4e657455abc48073d5f6b61aca6ae4d6dd3ad7104a0e576abfdea1c7fff2f5f838ba11fa398ed40c041bc913f6c8
6
+ metadata.gz: 250ec533ff70f9df98815bfe61c98b87f0bbfdbdc77a83844c18a166baee156f5cdea46476fbc828accb2569a48c0a5647a63f5b6aec53e76f1e92b52e2301dd
7
+ data.tar.gz: 65d87fff6702f96fea8b90ca448e71ada4f652555d6386d2d99ba1ff7956a846851ffcbf087c9ffdae3a1feed303c9893211df4f954cac5f6209a90a75037bde
checksums.yaml.gz.sig CHANGED
Binary file
@@ -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
@@ -5,6 +5,6 @@
5
5
 
6
6
  module Protocol
7
7
  module HTTP
8
- VERSION = "0.60.0"
8
+ VERSION = "0.62.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::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.60.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.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