protocol-http1 0.38.0 → 0.39.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/http1/connection.rb +2 -2
- data/lib/protocol/http1/version.rb +1 -1
- data/readme.md +4 -5
- data/releases.md +4 -0
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 0e973bb5fe97e0766eccc257775e2549397eb1fa8f308851e653987e90f05d66
|
|
4
|
+
data.tar.gz: a688b1894c1eeb0dc5c0dd08eb40259b16e6e4b749d6d35939cd3468b5011393
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a2fb5ee2311c5536d3d3e75e609a7a577f69854dc5449a04755ac4a0efea07d042b5d0f13b4c42563ad1d762f1ffed421889ab29f1b3392bada9e0a03e314726
|
|
7
|
+
data.tar.gz: d9ad14658632916da00953025fac66e6644be9e1e9504d5ad7e5a2bd74577c7ea21ce2073194ff2e9034e865172b609da3f03323d52ff4176f70957f44a2cb4c
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -258,7 +258,7 @@ module Protocol
|
|
|
258
258
|
# @parameter target [String] the request target.
|
|
259
259
|
# @parameter version [String] the HTTP version.
|
|
260
260
|
# @parameter headers [Hash] the HTTP headers.
|
|
261
|
-
# @raises [
|
|
261
|
+
# @raises [RefusedError] if the request was not processed.
|
|
262
262
|
def write_request(authority, method, target, version, headers)
|
|
263
263
|
open!
|
|
264
264
|
|
|
@@ -267,7 +267,7 @@ module Protocol
|
|
|
267
267
|
|
|
268
268
|
write_headers(headers)
|
|
269
269
|
rescue
|
|
270
|
-
raise ::Protocol::HTTP::
|
|
270
|
+
raise ::Protocol::HTTP::RefusedError
|
|
271
271
|
end
|
|
272
272
|
|
|
273
273
|
# Write a response to the connection. It is expected you will write the body after this method.
|
data/readme.md
CHANGED
|
@@ -30,6 +30,10 @@ Please see the [project documentation](https://socketry.github.io/protocol-http1
|
|
|
30
30
|
|
|
31
31
|
Please see the [project releases](https://socketry.github.io/protocol-http1/releases/index) for all releases.
|
|
32
32
|
|
|
33
|
+
### v0.39.0
|
|
34
|
+
|
|
35
|
+
- Rename `RequestRefusedError` -\> `RefusedError`.
|
|
36
|
+
|
|
33
37
|
### v0.38.0
|
|
34
38
|
|
|
35
39
|
- `write_request` now raises `Protocol::HTTP::RequestRefusedError` if the request line or headers cannot be written, indicating the request was not processed and can be safely retried.
|
|
@@ -68,11 +72,6 @@ Please see the [project releases](https://socketry.github.io/protocol-http1/rele
|
|
|
68
72
|
|
|
69
73
|
- Support high-byte characters in HTTP headers for improved international compatibility.
|
|
70
74
|
|
|
71
|
-
### v0.32.0
|
|
72
|
-
|
|
73
|
-
- Fix header parsing to handle tab characters between values correctly.
|
|
74
|
-
- Complete documentation coverage for all public APIs.
|
|
75
|
-
|
|
76
75
|
## Contributing
|
|
77
76
|
|
|
78
77
|
We welcome contributions to this project.
|
data/releases.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Releases
|
|
2
2
|
|
|
3
|
+
## v0.39.0
|
|
4
|
+
|
|
5
|
+
- Rename `RequestRefusedError` -\> `RefusedError`.
|
|
6
|
+
|
|
3
7
|
## v0.38.0
|
|
4
8
|
|
|
5
9
|
- `write_request` now raises `Protocol::HTTP::RequestRefusedError` if the request line or headers cannot be written, indicating the request was not processed and can be safely retried.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: protocol-http1
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.39.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
@@ -49,14 +49,14 @@ dependencies:
|
|
|
49
49
|
requirements:
|
|
50
50
|
- - "~>"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '0.
|
|
52
|
+
version: '0.62'
|
|
53
53
|
type: :runtime
|
|
54
54
|
prerelease: false
|
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
57
|
- - "~>"
|
|
58
58
|
- !ruby/object:Gem::Version
|
|
59
|
-
version: '0.
|
|
59
|
+
version: '0.62'
|
|
60
60
|
executables: []
|
|
61
61
|
extensions: []
|
|
62
62
|
extra_rdoc_files: []
|
metadata.gz.sig
CHANGED
|
Binary file
|