protocol-http1 0.19.1 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/http1/body/fixed.rb +1 -3
- data/lib/protocol/http1/error.rb +9 -10
- data/lib/protocol/http1/version.rb +1 -1
- data/readme.md +3 -3
- data.tar.gz.sig +0 -0
- metadata +7 -5
- 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: b49dc6301aa7d4aafb183cd1bea576bda5681e9d911245398c8c0c68ca38b1cc
|
4
|
+
data.tar.gz: b819f86f731d8e68391994e709318460a9c50b64fece83f398868a443faa3a72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc1c721b351c094243953896088405b4f3800662ac9539bc599cf7d989a48623243d8e443cba789df43fa88d857cd1bacee8ae1fc520a1e5a8a4846bf23c4276
|
7
|
+
data.tar.gz: c6bcb1f77924b2038167ea8c88cfcfcad9cf7cda91677b09ab2f264ff8f61ef7e782ce0a183144180978fa02a2de5d03bfe3f1f424624e1424efc451724384ba
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2019-
|
4
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
5
5
|
|
6
6
|
require 'protocol/http/body/readable'
|
7
7
|
|
@@ -39,8 +39,6 @@ module Protocol
|
|
39
39
|
@remaining -= chunk.bytesize
|
40
40
|
|
41
41
|
return chunk
|
42
|
-
# else
|
43
|
-
# raise EOFError, "Stream closed with #{@remaining} bytes remaining!"
|
44
42
|
end
|
45
43
|
end
|
46
44
|
end
|
data/lib/protocol/http1/error.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
# Released under the MIT License.
|
4
|
-
# Copyright, 2019-
|
4
|
+
# Copyright, 2019-2024, by Samuel Williams.
|
5
5
|
|
6
6
|
require 'protocol/http/error'
|
7
7
|
|
@@ -10,21 +10,20 @@ module Protocol
|
|
10
10
|
class Error < HTTP::Error
|
11
11
|
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
# The specified content length and the given content's length do not match.
|
17
|
-
class ContentLengthError < Error
|
13
|
+
# The request was not able to be parsed correctly, or failed some kind of validation.
|
14
|
+
class BadRequest < Error
|
18
15
|
end
|
19
16
|
|
20
|
-
#
|
21
|
-
class
|
17
|
+
# A header name or value was invalid, e.g. contains invalid characters.
|
18
|
+
class BadHeader < BadRequest
|
22
19
|
end
|
23
20
|
|
24
|
-
|
21
|
+
# Indicates that the request is invalid for some reason, e.g. syntax error, invalid headers, etc.
|
22
|
+
class InvalidRequest < BadRequest
|
25
23
|
end
|
26
24
|
|
27
|
-
|
25
|
+
# The specified content length and the given content's length do not match.
|
26
|
+
class ContentLengthError < Error
|
28
27
|
end
|
29
28
|
end
|
30
29
|
end
|
data/readme.md
CHANGED
@@ -71,8 +71,8 @@ We welcome contributions to this project.
|
|
71
71
|
|
72
72
|
### Developer Certificate of Origin
|
73
73
|
|
74
|
-
|
74
|
+
In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
|
75
75
|
|
76
|
-
###
|
76
|
+
### Community Guidelines
|
77
77
|
|
78
|
-
This project is
|
78
|
+
This project is best served by a collaborative and respectful environment. Treat each other professionally, respect differing viewpoints, and engage constructively. Harassment, discrimination, or harmful behavior is not tolerated. Communicate clearly, listen actively, and support one another. If any issues arise, please inform the project maintainers.
|
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.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Samuel Williams
|
@@ -42,7 +42,7 @@ cert_chain:
|
|
42
42
|
Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
|
43
43
|
voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
|
44
44
|
-----END CERTIFICATE-----
|
45
|
-
date: 2024-
|
45
|
+
date: 2024-08-26 00:00:00.000000000 Z
|
46
46
|
dependencies:
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: protocol-http
|
@@ -77,7 +77,9 @@ files:
|
|
77
77
|
homepage: https://github.com/socketry/protocol-http1
|
78
78
|
licenses:
|
79
79
|
- MIT
|
80
|
-
metadata:
|
80
|
+
metadata:
|
81
|
+
documentation_uri: https://socketry.github.io/protocol-http1/
|
82
|
+
source_code_uri: https://github.com/socketry/protocol-http1.git
|
81
83
|
post_install_message:
|
82
84
|
rdoc_options: []
|
83
85
|
require_paths:
|
@@ -86,14 +88,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
88
|
requirements:
|
87
89
|
- - ">="
|
88
90
|
- !ruby/object:Gem::Version
|
89
|
-
version: '3.
|
91
|
+
version: '3.1'
|
90
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
93
|
requirements:
|
92
94
|
- - ">="
|
93
95
|
- !ruby/object:Gem::Version
|
94
96
|
version: '0'
|
95
97
|
requirements: []
|
96
|
-
rubygems_version: 3.5.
|
98
|
+
rubygems_version: 3.5.11
|
97
99
|
signing_key:
|
98
100
|
specification_version: 4
|
99
101
|
summary: A low level implementation of the HTTP/1 protocol.
|
metadata.gz.sig
CHANGED
Binary file
|