http 6.0.2 → 6.0.3
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
- data/http.gemspec +1 -1
- data/lib/http/connection.rb +1 -1
- data/lib/http/features/logging.rb +1 -1
- data/lib/http/uri/parsing.rb +2 -2
- data/lib/http/version.rb +1 -1
- data/sig/llhttp.rbs +20 -0
- data/sig/manifest.yaml +13 -0
- metadata +7 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2f5c809837d4c7f60df054540d60533c9cbcf0894ed6862d5ecce9053f9a7bda
|
|
4
|
+
data.tar.gz: 0c42a3b9f0d373d4b026942fb4cb4079166cb92c012c371101f1d97772f26c4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d75bb1d3674f48a7a817c75603d360b142faa63030ec2db96ef50a43355059a30c26222c0151efabb1b61ec7804d7f33e41ea240c31417fe9aa16704a030b8a
|
|
7
|
+
data.tar.gz: 1f4b7574a4c5dfa3a6ab22e90f415d93d354c5dd625d132317d248f2481fd381a57df213fd9db67cd85c202bd6bad66e164289d4220e15987318dc186fcdc745
|
data/http.gemspec
CHANGED
|
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
27
27
|
|
|
28
28
|
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
|
|
29
|
-
extras = %w[LICENSE.txt README.md sig/http.rbs] << File.basename(__FILE__)
|
|
29
|
+
extras = %w[LICENSE.txt README.md sig/http.rbs sig/llhttp.rbs sig/manifest.yaml] << File.basename(__FILE__)
|
|
30
30
|
|
|
31
31
|
ls.readlines("\x0", chomp: true).select do |f|
|
|
32
32
|
f.start_with?("lib/") || extras.include?(f)
|
data/lib/http/connection.rb
CHANGED
|
@@ -254,7 +254,7 @@ module HTTP
|
|
|
254
254
|
# @return [void]
|
|
255
255
|
# @api private
|
|
256
256
|
def connect_socket(req, options)
|
|
257
|
-
@socket = options.timeout_class.new(**options.timeout_options)
|
|
257
|
+
@socket = options.timeout_class.new(**options.timeout_options)
|
|
258
258
|
@socket.connect(options.socket_class, req.socket_host, req.socket_port, nodelay: options.nodelay)
|
|
259
259
|
|
|
260
260
|
send_proxy_connect_request(req)
|
|
@@ -158,7 +158,7 @@ module HTTP
|
|
|
158
158
|
# @return [HTTP::Response::Body]
|
|
159
159
|
# @api private
|
|
160
160
|
def logged_body(body)
|
|
161
|
-
formatter = (method(:format_binary) unless body.loggable?)
|
|
161
|
+
formatter = (method(:format_binary) unless body.loggable?)
|
|
162
162
|
stream = BodyLogger.new(body.instance_variable_get(:@stream), logger, formatter: formatter) # steep:ignore
|
|
163
163
|
Response::Body.new(stream, encoding: body.encoding)
|
|
164
164
|
end
|
data/lib/http/uri/parsing.rb
CHANGED
|
@@ -171,11 +171,11 @@ module HTTP
|
|
|
171
171
|
# @return [Hash] URI components
|
|
172
172
|
private_class_method def self.parse_with_addressable(uri_string)
|
|
173
173
|
require_addressable
|
|
174
|
-
parsed = Addressable::URI.parse(uri_string)
|
|
174
|
+
parsed = Addressable::URI.parse(uri_string)
|
|
175
175
|
{ scheme: parsed.scheme, user: parsed.user, password: parsed.password,
|
|
176
176
|
host: parsed.host, port: parsed.port, path: parsed.path,
|
|
177
177
|
query: parsed.query, fragment: parsed.fragment }
|
|
178
|
-
rescue Addressable::URI::InvalidURIError
|
|
178
|
+
rescue Addressable::URI::InvalidURIError
|
|
179
179
|
raise InvalidError, "invalid URI: #{uri_string.inspect}"
|
|
180
180
|
end
|
|
181
181
|
end
|
data/lib/http/version.rb
CHANGED
data/sig/llhttp.rbs
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Stubs for llhttp / llhttp-ffi, which do not ship their own RBS signatures.
|
|
2
|
+
# Referenced by `HTTP::Response::Parser`, which is part of the public API.
|
|
3
|
+
|
|
4
|
+
module LLHttp
|
|
5
|
+
class Error < StandardError
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
class Parser
|
|
9
|
+
def initialize: (untyped, ?type: Symbol) -> void
|
|
10
|
+
def reset: () -> void
|
|
11
|
+
def <<: (String) -> void
|
|
12
|
+
def status_code: () -> Integer
|
|
13
|
+
def http_major: () -> Integer
|
|
14
|
+
def http_minor: () -> Integer
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
class Delegate
|
|
18
|
+
def initialize: () -> void
|
|
19
|
+
end
|
|
20
|
+
end
|
data/sig/manifest.yaml
ADDED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: http
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 6.0.
|
|
4
|
+
version: 6.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tony Arcieri
|
|
@@ -113,15 +113,17 @@ files:
|
|
|
113
113
|
- lib/http/uri/parsing.rb
|
|
114
114
|
- lib/http/version.rb
|
|
115
115
|
- sig/http.rbs
|
|
116
|
+
- sig/llhttp.rbs
|
|
117
|
+
- sig/manifest.yaml
|
|
116
118
|
homepage: https://github.com/httprb/http
|
|
117
119
|
licenses:
|
|
118
120
|
- MIT
|
|
119
121
|
metadata:
|
|
120
122
|
homepage_uri: https://github.com/httprb/http
|
|
121
|
-
source_code_uri: https://github.com/httprb/http/tree/v6.0.
|
|
123
|
+
source_code_uri: https://github.com/httprb/http/tree/v6.0.3
|
|
122
124
|
bug_tracker_uri: https://github.com/httprb/http/issues
|
|
123
|
-
changelog_uri: https://github.com/httprb/http/blob/v6.0.
|
|
124
|
-
documentation_uri: https://www.rubydoc.info/gems/http/6.0.
|
|
125
|
+
changelog_uri: https://github.com/httprb/http/blob/v6.0.3/CHANGELOG.md
|
|
126
|
+
documentation_uri: https://www.rubydoc.info/gems/http/6.0.3
|
|
125
127
|
rubygems_mfa_required: 'true'
|
|
126
128
|
rdoc_options: []
|
|
127
129
|
require_paths:
|
|
@@ -137,7 +139,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
137
139
|
- !ruby/object:Gem::Version
|
|
138
140
|
version: '0'
|
|
139
141
|
requirements: []
|
|
140
|
-
rubygems_version: 4.0.
|
|
142
|
+
rubygems_version: 4.0.10
|
|
141
143
|
specification_version: 4
|
|
142
144
|
summary: HTTP should be easy
|
|
143
145
|
test_files: []
|