http 6.0.4 → 6.0.5

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: 0ada1c2436fc0b5a9f5eba76d63d7f7846ad7ff2635717693f67ad48c3d9c22b
4
- data.tar.gz: 016a84342ef4655e6359564b7b2833eb2563f57b4876043e901800187cd2a2e6
3
+ metadata.gz: 14d55ac57c3f001fc4289573e32699f7a898d88596c05dec3311c8138dab16ef
4
+ data.tar.gz: 01e8603bb70ce124b1f50d7ab21674db29306f3866659450cdd283c69e9a8684
5
5
  SHA512:
6
- metadata.gz: 03222f88025ec225419f422dc3a2c6823c388354795ebb124630519e79d8ba96955d8e3d956aaba995e4a2c84e3b4932c5773976132967a3128dd6d85d109c87
7
- data.tar.gz: c9f80325fd4257df0a0dc8e801f9ed5e006562ec8d84dcca009d5359a8c49e5912d6566bc715f65be8c10a3682831a44e3aad7d626640b472b80eccbaedb8211
6
+ metadata.gz: c3f8d2b06016aa9fe9a84fd2ee934e1daa808526ad740e92c74d44b3d55810835ac480dd34099f297e0f6b33438e60be4c187e23f1b7a1c79db3a32a31e018f5
7
+ data.tar.gz: 146b5dc647fde4722e4f3a55a72687663fa99931737c9b95a6c5d58f812a1621b1597e35520e531219bbd764f2cffd32044975b98a8619d2320d45cb41197c91
@@ -135,7 +135,7 @@ module HTTP
135
135
  # @return [void]
136
136
  # @api public
137
137
  def update_headers!(response_headers)
138
- response_headers.each { |name, value| @headers[name] = value } # steep:ignore
138
+ @headers.merge!(response_headers)
139
139
  end
140
140
 
141
141
  private
@@ -14,6 +14,21 @@ module HTTP
14
14
  # Thread-local cache key for normalized header names
15
15
  CACHE_KEY = :http_headers_normalizer_cache
16
16
 
17
+ # Most distinct names the cache holds before it is emptied
18
+ #
19
+ # Header names come from servers, so an unbounded cache would let a
20
+ # server grow memory without limit by sending fresh names each time.
21
+ MAX_CACHE_SIZE = 1_000
22
+
23
+ # Longest name, in bytes, that the cache keeps
24
+ #
25
+ # Standard header names are at most about 40 bytes, so 64 caches every
26
+ # name a client sees in practice. Longer names are normalized on each
27
+ # call instead, which keeps the cache under about 128 KB per thread
28
+ # (each entry holds a name and its normalized form, neither longer than
29
+ # this) however long the names a server sends.
30
+ MAX_CACHED_NAME_BYTESIZE = 64
31
+
17
32
  # Normalizes a header name to canonical form
18
33
  #
19
34
  # @example
@@ -22,9 +37,18 @@ module HTTP
22
37
  # @return [String]
23
38
  # @api public
24
39
  def call(name)
25
- name = name.to_s
40
+ name = name.to_s
41
+ return normalize_header(name) if name.bytesize > MAX_CACHED_NAME_BYTESIZE
42
+
26
43
  cache = (Thread.current[CACHE_KEY] ||= {})
27
- value = (cache[name] ||= normalize_header(name))
44
+ value = cache.fetch(name) do
45
+ # The cache grows one name at a time, so it is full exactly when
46
+ # its size reaches the limit
47
+ case cache.size
48
+ when MAX_CACHE_SIZE then cache.clear
49
+ end
50
+ cache[name] = normalize_header(name)
51
+ end
28
52
 
29
53
  value.dup
30
54
  end
data/lib/http/headers.rb CHANGED
@@ -23,15 +23,17 @@ module HTTP
23
23
  # @return [Headers]
24
24
  # @api public
25
25
  def coerce(object)
26
- object = if object.respond_to?(:to_hash) then object.to_hash
27
- elsif object.respond_to?(:to_h) then object.to_h
28
- elsif object.respond_to?(:to_a) then object.to_a
26
+ # A Headers instance is copied pair by pair rather than through
27
+ # #to_hash, which would repeat the values of case variant names and
28
+ # collapse the order of interleaved ones.
29
+ object = if object.is_a?(Headers) then object
30
+ elsif object.respond_to?(:to_hash) then object.to_hash
31
+ elsif object.respond_to?(:to_h) then object.to_h
32
+ elsif object.respond_to?(:to_a) then object.to_a
29
33
  else raise Error, "Can't coerce #{object.inspect} to Headers"
30
34
  end
31
35
 
32
- headers = new
33
- object.each { |k, v| headers.add k, v }
34
- headers
36
+ new.tap { |headers| object.each { |k, v| headers.add k, v } }
35
37
  end
36
38
  # @!method [](object)
37
39
  # Coerces given object into Headers
@@ -155,14 +157,7 @@ module HTTP
155
157
  # @return [String] if header has exactly one value
156
158
  # @return [Array<String>] if header has more than one value
157
159
  # @api public
158
- def [](name)
159
- values = get(name)
160
- return if values.empty?
161
-
162
- return values unless values.one?
163
-
164
- values.join
165
- end
160
+ def [](name) = smart_value(get(name))
166
161
 
167
162
  # Tells whether header with given name is set
168
163
  #
@@ -183,9 +178,7 @@ module HTTP
183
178
  #
184
179
  # @return [Hash]
185
180
  # @api public
186
- def to_h
187
- keys.to_h { |k| [k, self[k]] }
188
- end
181
+ def to_h = hash_by_name(&:itself)
189
182
  # @!method to_hash
190
183
  # @see #to_h
191
184
  # @return [Hash]
@@ -200,7 +193,7 @@ module HTTP
200
193
  # @return [Hash{Symbol => Object}]
201
194
  # @api public
202
195
  def deconstruct_keys(keys)
203
- hash = @pile.map { |_, k, _| k }.to_h { |k| [k.tr("A-Z-", "a-z_").to_sym, self[k]] }
196
+ hash = hash_by_name { |name| name.tr("A-Z-", "a-z_").to_sym }
204
197
  keys ? hash.slice(*keys) : hash
205
198
  end
206
199
 
@@ -291,8 +284,9 @@ module HTTP
291
284
  # @api public
292
285
  def merge!(other)
293
286
  coerced = self.class.coerce(other)
294
- names = coerced.keys
295
- names.each { |name| set name, coerced.get(name) }
287
+ names = coerced.keys.to_set { |name| normalize_header(name) }
288
+ @pile.delete_if { |lookup_name, _| names.include?(lookup_name) }
289
+ coerced.each { |name, value| add(name, value) }
296
290
  end
297
291
 
298
292
  # Returns new instance with other headers merged in
@@ -309,6 +303,30 @@ module HTTP
309
303
 
310
304
  private
311
305
 
306
+ # Hash of smart values (see {#[]}), keyed by what the block returns for
307
+ # each wire name
308
+ #
309
+ # Groups the pile by lookup name in one pass, so building the whole Hash
310
+ # costs O(n) rather than one full scan of the pile per header name.
311
+ #
312
+ # @yieldparam [String] wire_name
313
+ # @return [Hash]
314
+ # @api private
315
+ def hash_by_name
316
+ values = @pile.group_by(&:first).transform_values { |entries| smart_value(entries.map(&:last)) }
317
+ @pile.to_h { |lookup_name, wire_name| [yield(wire_name), values.fetch(lookup_name)] }
318
+ end
319
+
320
+ # Collapses a list of values as described in {#[]}
321
+ #
322
+ # @return [nil, String, Array<String>]
323
+ # @api private
324
+ def smart_value(values)
325
+ return values.join if values.one?
326
+
327
+ values unless values.empty?
328
+ end
329
+
312
330
  # Returns the wire name for a header
313
331
  #
314
332
  # @return [String]
@@ -0,0 +1,97 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "http/cookie"
4
+ require "http/headers"
5
+
6
+ module HTTP
7
+ # Cookie state for one request and the redirects it follows
8
+ #
9
+ # Each hop gets only the cookies that may be sent to its URI, using the
10
+ # jar's domain, path and Secure rules. Cookies the caller supplied in the
11
+ # initial request's Cookie header are sent only while the redirects stay on
12
+ # that request's origin (scheme, host and port). Once a hop leaves it, they
13
+ # are not sent again, even to a later hop back on the origin. This is the
14
+ # rule that applies to Authorization.
15
+ #
16
+ # @api private
17
+ class RedirectCookies
18
+ # Create cookie state from the initial request
19
+ #
20
+ # @param request [HTTP::Request] the initial request
21
+ # @return [RedirectCookies]
22
+ # @api private
23
+ def initialize(request)
24
+ @origin = request.uri.origin
25
+ @jar = CookieJar.new
26
+ @own = load(request)
27
+ end
28
+
29
+ # Store cookies from the response's Set-Cookie headers
30
+ #
31
+ # A cookie with an empty value deletes the matching stored cookie.
32
+ #
33
+ # @param response [HTTP::Response] the response
34
+ # @return [void]
35
+ # @api private
36
+ def store(response)
37
+ response.cookies.each do |cookie|
38
+ if cookie.value.empty?
39
+ @jar.delete(cookie)
40
+ else
41
+ @jar.add(cookie)
42
+ end
43
+ end
44
+ end
45
+
46
+ # Set the request's Cookie header to the cookies that may be sent to it
47
+ #
48
+ # @param request [HTTP::Request] the redirect request
49
+ # @return [void]
50
+ # @api private
51
+ def apply(request)
52
+ cookies = cookies_for(request.uri)
53
+
54
+ if cookies.empty?
55
+ request.headers.delete(Headers::COOKIE)
56
+ else
57
+ request.headers.set(Headers::COOKIE, cookies.map { |c| "#{c.name}=#{c.value}" }.join("; "))
58
+ end
59
+ end
60
+
61
+ private
62
+
63
+ # Add the caller's cookies to the jar as host-only cookies for every path
64
+ #
65
+ # Each cookie is created with the request's origin, which has no path,
66
+ # so the cookie is host-only and its default path is "/".
67
+ #
68
+ # @param request [HTTP::Request] the initial request
69
+ # @return [Array<HTTP::Cookie>] the cookies added
70
+ # @api private
71
+ def load(request)
72
+ header = request.headers[Headers::COOKIE].to_s
73
+
74
+ Cookie.cookie_value_to_hash(header).map do |name, value|
75
+ cookie = Cookie.new(name, value, origin: @origin)
76
+ @jar.add(cookie)
77
+ cookie
78
+ end
79
+ end
80
+
81
+ # Select the cookies that may be sent to a URI
82
+ #
83
+ # Hops must be passed in order. The first hop off the original origin
84
+ # stops the caller's cookies for the rest of the redirects.
85
+ #
86
+ # @param uri [HTTP::URI] the request URI
87
+ # @return [Array<HTTP::Cookie>]
88
+ # @api private
89
+ def cookies_for(uri)
90
+ @left ||= !@origin.eql?(uri.origin)
91
+ cookies = @jar.cookies(uri)
92
+ return cookies unless @left
93
+
94
+ cookies.reject { |cookie| @own.any? { |own| own.equal?(cookie) } }
95
+ end
96
+ end
97
+ end
data/lib/http/session.rb CHANGED
@@ -6,6 +6,7 @@ require "http/cookie_jar"
6
6
  require "http/headers"
7
7
  require "http/redirector"
8
8
  require "http/request/builder"
9
+ require "http/redirect_cookies"
9
10
 
10
11
  module HTTP
11
12
  # Thread-safe options builder for configuring HTTP requests.
@@ -157,17 +158,16 @@ module HTTP
157
158
  # @return [HTTP::Response] the response
158
159
  # @api private
159
160
  def perform_request(client, verb, uri, merged)
160
- cookie_jar = CookieJar.new
161
161
  builder = Request::Builder.new(merged)
162
162
  req = builder.build(verb, uri)
163
163
  client ||= client_for_origin(req.uri.origin)
164
- load_cookies(cookie_jar, req)
164
+ cookies = RedirectCookies.new(req)
165
165
  res = client.perform(req, merged)
166
- store_cookies(cookie_jar, res)
166
+ cookies.store(res)
167
167
 
168
168
  return res unless merged.follow
169
169
 
170
- perform_redirects(cookie_jar, client, req, res, merged)
170
+ perform_redirects(cookies, client, req, res, merged)
171
171
  end
172
172
 
173
173
  # Follow redirects with cookie management
@@ -177,22 +177,22 @@ module HTTP
177
177
  # the redirect target's origin, allowing cross-origin redirects
178
178
  # without raising {StateError}.
179
179
  #
180
- # @param jar [HTTP::CookieJar] the cookie jar
180
+ # @param cookies [HTTP::RedirectCookies] the request's cookies
181
181
  # @param client [HTTP::Client] the client for the initial request
182
182
  # @param req [HTTP::Request] the original request
183
183
  # @param res [HTTP::Response] the initial redirect response
184
184
  # @param opts [HTTP::Options] the merged options
185
185
  # @return [HTTP::Response] the final non-redirect response
186
186
  # @api private
187
- def perform_redirects(jar, client, req, res, opts)
187
+ def perform_redirects(cookies, client, req, res, opts)
188
188
  builder = Request::Builder.new(opts)
189
189
  follow = opts.follow || {} #: Hash[untyped, untyped]
190
190
  Redirector.new(**follow).perform(req, res) do |redirect_req|
191
191
  wrapped = builder.wrap(redirect_req)
192
- apply_cookies(jar, wrapped)
193
- apply_cookies(jar, redirect_req)
192
+ cookies.apply(wrapped)
193
+ cookies.apply(redirect_req)
194
194
  response = redirect_client(client, wrapped).perform(wrapped, opts)
195
- store_cookies(jar, response)
195
+ cookies.store(response)
196
196
  response
197
197
  end
198
198
  end
@@ -231,50 +231,5 @@ module HTTP
231
231
 
232
232
  default_options.merge(persistent: origin, base_uri: nil)
233
233
  end
234
-
235
- # Load cookies from the request's Cookie header into the jar
236
- #
237
- # @param jar [HTTP::CookieJar] the cookie jar
238
- # @param request [HTTP::Request] the request
239
- # @return [void]
240
- # @api private
241
- def load_cookies(jar, request)
242
- header = request.headers[Headers::COOKIE]
243
- cookies = HTTP::Cookie.cookie_value_to_hash(header.to_s)
244
-
245
- cookies.each do |name, value|
246
- jar.add(HTTP::Cookie.new(name, value, path: request.uri.path, domain: request.host))
247
- end
248
- end
249
-
250
- # Store cookies from the response's Set-Cookie headers into the jar
251
- #
252
- # @param jar [HTTP::CookieJar] the cookie jar
253
- # @param response [HTTP::Response] the response
254
- # @return [void]
255
- # @api private
256
- def store_cookies(jar, response)
257
- response.cookies.each do |cookie|
258
- if cookie.value == ""
259
- jar.delete(cookie)
260
- else
261
- jar.add(cookie)
262
- end
263
- end
264
- end
265
-
266
- # Apply cookies from the jar to the request's Cookie header
267
- #
268
- # @param jar [HTTP::CookieJar] the cookie jar
269
- # @param request [HTTP::Request] the request
270
- # @return [void]
271
- # @api private
272
- def apply_cookies(jar, request)
273
- if jar.empty?
274
- request.headers.delete(Headers::COOKIE)
275
- else
276
- request.headers.set(Headers::COOKIE, jar.map { |c| "#{c.name}=#{c.value}" }.join("; "))
277
- end
278
- end
279
234
  end
280
235
  end
data/lib/http/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module HTTP
4
4
  # Current library version
5
- VERSION = "6.0.4"
5
+ VERSION = "6.0.5"
6
6
  end
data/sig/http.rbs CHANGED
@@ -240,13 +240,26 @@ module HTTP
240
240
 
241
241
  def branch: (Options options) -> Session
242
242
  def perform_request: (Client? client, verb verb, untyped uri, Options merged) -> Response
243
- def perform_redirects: (CookieJar jar, Client client, Request req, Response res, Options opts) -> Response
243
+ def perform_redirects: (RedirectCookies cookies, Client client, Request req, Response res, Options opts) -> Response
244
244
  def redirect_client: (Client client, Request request) -> Client
245
245
  def client_for_origin: (String origin) -> Client
246
246
  def options_for_origin: (String origin) -> Options
247
- def load_cookies: (CookieJar jar, Request request) -> void
248
- def store_cookies: (CookieJar jar, Response response) -> void
249
- def apply_cookies: (CookieJar jar, Request request) -> void
247
+ end
248
+
249
+ class RedirectCookies
250
+ @origin: String
251
+ @jar: CookieJar
252
+ @own: Array[Cookie]
253
+ @left: bool?
254
+
255
+ def initialize: (Request request) -> void
256
+ def store: (Response response) -> void
257
+ def apply: (Request request) -> void
258
+
259
+ private
260
+
261
+ def load: (Request request) -> Array[Cookie]
262
+ def cookies_for: (URI uri) -> Array[Cookie]
250
263
  end
251
264
 
252
265
  class Headers
@@ -300,7 +313,7 @@ module HTTP
300
313
  def inspect: () -> String
301
314
  def keys: () -> Array[String]
302
315
  def ==: (untyped other) -> bool
303
- def each: () { (Array[String]) -> void } -> Headers
316
+ def each: () { ([String, String]) -> void } -> Headers
304
317
  | () -> Enumerator[Array[String], Headers]
305
318
  def empty?: () -> bool
306
319
  def hash: () -> Integer
@@ -310,6 +323,8 @@ module HTTP
310
323
 
311
324
  private
312
325
 
326
+ def hash_by_name: [K] () { (String wire_name) -> K } -> Hash[K, String | Array[String]?]
327
+ def smart_value: (Array[String] values) -> (String | Array[String]?)
313
328
  def wire_name_for: (String | Symbol name, String lookup_name) -> String
314
329
  def normalize_header: (String | Symbol name) -> String
315
330
  def validate_value: (String | Array[String] value) -> String
@@ -320,6 +335,8 @@ module HTTP
320
335
  COMPLIANT_NAME_RE: Regexp
321
336
  NAME_PARTS_SEPARATOR_RE: Regexp
322
337
  CACHE_KEY: Symbol
338
+ MAX_CACHE_SIZE: Integer
339
+ MAX_CACHED_NAME_BYTESIZE: Integer
323
340
 
324
341
  def call: (String | Symbol name) -> String
325
342
 
@@ -1221,7 +1238,7 @@ module HTTP
1221
1238
  def each: () { (Cookie) -> void } -> void
1222
1239
  | () -> Enumerator[Cookie, void]
1223
1240
  def empty?: () -> bool
1224
- def cookies: () -> Array[Cookie]
1241
+ def cookies: (?(String | URI) url) -> Array[Cookie]
1225
1242
  end
1226
1243
 
1227
1244
  class Cookie
metadata CHANGED
@@ -1,145 +1,151 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.4
4
+ version: 6.0.5
5
5
  platform: ruby
6
6
  authors:
7
- - Tony Arcieri
8
- - Erik Berlin
9
- - Alexey V. Zapparov
10
- - Zachary Anker
7
+ - Tony Arcieri
8
+ - Erik Berlin
9
+ - Alexey V. Zapparov
10
+ - Zachary Anker
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
  date: 1980-01-02 00:00:00.000000000 Z
14
14
  dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: http-cookie
17
- requirement: !ruby/object:Gem::Requirement
18
- requirements:
19
- - - "~>"
20
- - !ruby/object:Gem::Version
21
- version: '1.0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- requirements:
26
- - - "~>"
27
- - !ruby/object:Gem::Version
28
- version: '1.0'
29
- - !ruby/object:Gem::Dependency
30
- name: llhttp
31
- requirement: !ruby/object:Gem::Requirement
32
- requirements:
33
- - - "~>"
34
- - !ruby/object:Gem::Version
35
- version: 0.6.1
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - "~>"
41
- - !ruby/object:Gem::Version
42
- version: 0.6.1
43
- description: An easy-to-use client library for making requests from Ruby. It uses
44
- a simple method chaining system for building requests, similar to Python's Requests.
15
+ - !ruby/object:Gem::Dependency
16
+ name: http-cookie
17
+ requirement: !ruby/object:Gem::Requirement
18
+ requirements:
19
+ -
20
+ - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: "1.0"
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ -
28
+ - ~>
29
+ - !ruby/object:Gem::Version
30
+ version: "1.0"
31
+ - !ruby/object:Gem::Dependency
32
+ name: llhttp
33
+ requirement: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ -
36
+ - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: 0.6.1
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ -
44
+ - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: 0.6.1
47
+ description: "An easy-to-use client library for making requests from Ruby. It uses a simple method chaining system for building requests, similar to Python's Requests."
45
48
  email:
46
- - bascule@gmail.com
49
+ - bascule@gmail.com
47
50
  executables: []
48
51
  extensions: []
49
52
  extra_rdoc_files: []
50
53
  files:
51
- - LICENSE.txt
52
- - README.md
53
- - http.gemspec
54
- - lib/http.rb
55
- - lib/http/base64.rb
56
- - lib/http/chainable.rb
57
- - lib/http/chainable/helpers.rb
58
- - lib/http/chainable/verbs.rb
59
- - lib/http/client.rb
60
- - lib/http/connection.rb
61
- - lib/http/connection/internals.rb
62
- - lib/http/content_type.rb
63
- - lib/http/errors.rb
64
- - lib/http/feature.rb
65
- - lib/http/features/auto_deflate.rb
66
- - lib/http/features/auto_inflate.rb
67
- - lib/http/features/caching.rb
68
- - lib/http/features/caching/entry.rb
69
- - lib/http/features/caching/in_memory_store.rb
70
- - lib/http/features/digest_auth.rb
71
- - lib/http/features/instrumentation.rb
72
- - lib/http/features/logging.rb
73
- - lib/http/features/normalize_uri.rb
74
- - lib/http/features/raise_error.rb
75
- - lib/http/form_data.rb
76
- - lib/http/form_data/composite_io.rb
77
- - lib/http/form_data/file.rb
78
- - lib/http/form_data/multipart.rb
79
- - lib/http/form_data/multipart/param.rb
80
- - lib/http/form_data/part.rb
81
- - lib/http/form_data/readable.rb
82
- - lib/http/form_data/urlencoded.rb
83
- - lib/http/form_data/version.rb
84
- - lib/http/headers.rb
85
- - lib/http/headers/known.rb
86
- - lib/http/headers/normalizer.rb
87
- - lib/http/mime_type.rb
88
- - lib/http/mime_type/adapter.rb
89
- - lib/http/mime_type/json.rb
90
- - lib/http/options.rb
91
- - lib/http/options/definitions.rb
92
- - lib/http/redirector.rb
93
- - lib/http/request.rb
94
- - lib/http/request/body.rb
95
- - lib/http/request/builder.rb
96
- - lib/http/request/proxy.rb
97
- - lib/http/request/writer.rb
98
- - lib/http/response.rb
99
- - lib/http/response/body.rb
100
- - lib/http/response/inflater.rb
101
- - lib/http/response/parser.rb
102
- - lib/http/response/status.rb
103
- - lib/http/response/status/reasons.rb
104
- - lib/http/retriable/delay_calculator.rb
105
- - lib/http/retriable/errors.rb
106
- - lib/http/retriable/performer.rb
107
- - lib/http/session.rb
108
- - lib/http/timeout/global.rb
109
- - lib/http/timeout/null.rb
110
- - lib/http/timeout/per_operation.rb
111
- - lib/http/uri.rb
112
- - lib/http/uri/normalizer.rb
113
- - lib/http/uri/parsing.rb
114
- - lib/http/version.rb
115
- - sig/http.rbs
116
- - sig/llhttp.rbs
117
- - sig/manifest.yaml
118
- homepage: https://github.com/httprb/http
54
+ - LICENSE.txt
55
+ - README.md
56
+ - http.gemspec
57
+ - lib/http.rb
58
+ - lib/http/base64.rb
59
+ - lib/http/chainable.rb
60
+ - lib/http/chainable/helpers.rb
61
+ - lib/http/chainable/verbs.rb
62
+ - lib/http/client.rb
63
+ - lib/http/connection.rb
64
+ - lib/http/connection/internals.rb
65
+ - lib/http/content_type.rb
66
+ - lib/http/errors.rb
67
+ - lib/http/feature.rb
68
+ - lib/http/features/auto_deflate.rb
69
+ - lib/http/features/auto_inflate.rb
70
+ - lib/http/features/caching.rb
71
+ - lib/http/features/caching/entry.rb
72
+ - lib/http/features/caching/in_memory_store.rb
73
+ - lib/http/features/digest_auth.rb
74
+ - lib/http/features/instrumentation.rb
75
+ - lib/http/features/logging.rb
76
+ - lib/http/features/normalize_uri.rb
77
+ - lib/http/features/raise_error.rb
78
+ - lib/http/form_data.rb
79
+ - lib/http/form_data/composite_io.rb
80
+ - lib/http/form_data/file.rb
81
+ - lib/http/form_data/multipart.rb
82
+ - lib/http/form_data/multipart/param.rb
83
+ - lib/http/form_data/part.rb
84
+ - lib/http/form_data/readable.rb
85
+ - lib/http/form_data/urlencoded.rb
86
+ - lib/http/form_data/version.rb
87
+ - lib/http/headers.rb
88
+ - lib/http/headers/known.rb
89
+ - lib/http/headers/normalizer.rb
90
+ - lib/http/mime_type.rb
91
+ - lib/http/mime_type/adapter.rb
92
+ - lib/http/mime_type/json.rb
93
+ - lib/http/options.rb
94
+ - lib/http/options/definitions.rb
95
+ - lib/http/redirect_cookies.rb
96
+ - lib/http/redirector.rb
97
+ - lib/http/request.rb
98
+ - lib/http/request/body.rb
99
+ - lib/http/request/builder.rb
100
+ - lib/http/request/proxy.rb
101
+ - lib/http/request/writer.rb
102
+ - lib/http/response.rb
103
+ - lib/http/response/body.rb
104
+ - lib/http/response/inflater.rb
105
+ - lib/http/response/parser.rb
106
+ - lib/http/response/status.rb
107
+ - lib/http/response/status/reasons.rb
108
+ - lib/http/retriable/delay_calculator.rb
109
+ - lib/http/retriable/errors.rb
110
+ - lib/http/retriable/performer.rb
111
+ - lib/http/session.rb
112
+ - lib/http/timeout/global.rb
113
+ - lib/http/timeout/null.rb
114
+ - lib/http/timeout/per_operation.rb
115
+ - lib/http/uri.rb
116
+ - lib/http/uri/normalizer.rb
117
+ - lib/http/uri/parsing.rb
118
+ - lib/http/version.rb
119
+ - sig/http.rbs
120
+ - sig/llhttp.rbs
121
+ - sig/manifest.yaml
122
+ homepage: "https://github.com/httprb/http"
119
123
  licenses:
120
- - MIT
124
+ - MIT
121
125
  metadata:
122
- homepage_uri: https://github.com/httprb/http
123
- source_code_uri: https://github.com/httprb/http/tree/v6.0.4
124
- bug_tracker_uri: https://github.com/httprb/http/issues
125
- changelog_uri: https://github.com/httprb/http/blob/v6.0.4/CHANGELOG.md
126
- documentation_uri: https://www.rubydoc.info/gems/http/6.0.4
127
- rubygems_mfa_required: 'true'
126
+ homepage_uri: "https://github.com/httprb/http"
127
+ source_code_uri: "https://github.com/httprb/http/tree/v6.0.5"
128
+ bug_tracker_uri: "https://github.com/httprb/http/issues"
129
+ changelog_uri: "https://github.com/httprb/http/blob/v6.0.5/CHANGELOG.md"
130
+ documentation_uri: "https://www.rubydoc.info/gems/http/6.0.5"
131
+ rubygems_mfa_required: "true"
128
132
  rdoc_options: []
129
133
  require_paths:
130
- - lib
134
+ - lib
131
135
  required_ruby_version: !ruby/object:Gem::Requirement
132
136
  requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- version: '3.2'
137
+ -
138
+ - ">="
139
+ - !ruby/object:Gem::Version
140
+ version: "3.2"
136
141
  required_rubygems_version: !ruby/object:Gem::Requirement
137
142
  requirements:
138
- - - ">="
139
- - !ruby/object:Gem::Version
140
- version: '0'
143
+ -
144
+ - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: "0"
141
147
  requirements: []
142
- rubygems_version: 4.0.16
148
+ rubygems_version: 4.1.1
143
149
  specification_version: 4
144
150
  summary: HTTP should be easy
145
151
  test_files: []