wreq 1.3.2.2-aarch64-linux → 1.3.3-aarch64-linux

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: b78167111103aacf1f124c962fb7460138fe0436070c224f6b32b0067ef2089a
4
- data.tar.gz: 5ca8de9b00bfc1c722f3ce5402b9ff3fc5a82ff7fb816f7aa44d04dd1adedf8c
3
+ metadata.gz: 0d2db45f98055ee65b4932ef8032456189713a5a0279aa36f9fbbcb370839304
4
+ data.tar.gz: 6a63533e349eaffab4714609f5231d6d99c05de6b72ad75b06133fc431e44c8a
5
5
  SHA512:
6
- metadata.gz: 1bc4241e8cda287db521cee231469def537a50d52327dd1c25537ab6803c585ebb7f720a3d6340c5f81395dbd6e69dd80a2e1b76f11e67bd2618d2db12682d5b
7
- data.tar.gz: f955c6e1b2e57cc32d2a3cad9765356df8d116e3745e97b14fd36b3d0b06a836c8313b0a06297936b86e7b2987e0cf77a75354ed1b0a990c8c9b6d3889a07aae
6
+ metadata.gz: 184dee18a6415b84227e471c59f4972aa8cb3c3ee7a2998d90a10605bcc3ec4f788f02ca8418f2df9505d1d74365d4c9d982219a48e83b683a7829c7545d93e1
7
+ data.tar.gz: b83f842ba969f3aa1bc54500516b1b51165a92bfe2870eb6c2665dfe7439b9ea12552062437d7693be1585ae2374ac76100b5c4fbe878ede6b746133061ad4a6
data/README.md CHANGED
@@ -91,7 +91,7 @@ Most browser device models share identical TLS and HTTP/2 configurations, differ
91
91
 
92
92
  | **Browser** | **Versions** |
93
93
  | ----------- | ------------ |
94
- | **Chrome** | `Chrome100`, `Chrome101`, `Chrome104`, `Chrome105`, `Chrome106`, `Chrome107`, `Chrome108`, `Chrome109`, `Chrome110`, `Chrome114`, `Chrome116`, `Chrome117`, `Chrome118`, `Chrome119`, `Chrome120`, `Chrome123`, `Chrome124`, `Chrome126`, `Chrome127`, `Chrome128`, `Chrome129`, `Chrome130`, `Chrome131`, `Chrome132`, `Chrome133`, `Chrome134`, `Chrome135`, `Chrome136`, `Chrome137`, `Chrome138`, `Chrome139`, `Chrome140`, `Chrome141`, `Chrome142`, `Chrome143`, `Chrome144`, `Chrome145`, `Chrome146`, `Chrome147`, `Chrome148`, `Chrome149`, `Chrome150`, `Chrome151`, `Chrome152`, `Chrome153`, `Chrome154`, `Chrome155`, `Chrome156`, `Chrome157`, `Chrome158` |
94
+ | **Chrome** | `Chrome100`, `Chrome101`, `Chrome104`, `Chrome105`, `Chrome106`, `Chrome107`, `Chrome108`, `Chrome109`, `Chrome110`, `Chrome114`, `Chrome116`, `Chrome117`, `Chrome118`, `Chrome119`, `Chrome120`, `Chrome123`, `Chrome124`, `Chrome126`, `Chrome127`, `Chrome128`, `Chrome129`, `Chrome130`, `Chrome131`, `Chrome132`, `Chrome133`, `Chrome134`, `Chrome135`, `Chrome136`, `Chrome137`, `Chrome138`, `Chrome139`, `Chrome140`, `Chrome141`, `Chrome142`, `Chrome143`, `Chrome144`, `Chrome145`, `Chrome146`, `Chrome147`, `Chrome148`, `Chrome149`, `Chrome150`, `Chrome151`, `Chrome152`, `Chrome153`, `Chrome154`, `Chrome155`, `Chrome156`, `Chrome157` |
95
95
  | **Edge** | `Edge101`, `Edge122`, `Edge127`, `Edge131`, `Edge134`, `Edge135`, `Edge136`, `Edge137`, `Edge138`, `Edge139`, `Edge140`, `Edge141`, `Edge142`, `Edge143`, `Edge144`, `Edge145`, `Edge146`, `Edge147`, `Edge148` |
96
96
  | **Firefox** | `Firefox109`, `Firefox117`, `Firefox128`, `Firefox133`, `Firefox135`, `FirefoxPrivate135`, `FirefoxAndroid135`, `Firefox136`, `FirefoxPrivate136`, `Firefox139`, `Firefox142`, `Firefox143`, `Firefox144`, `Firefox145`, `Firefox146`, `Firefox147`, `Firefox148`, `Firefox149`, `Firefox150`, `Firefox151`, `Firefox152` |
97
97
  | **Safari** | `Safari15_3`, `Safari15_5`, `Safari15_6_1`, `Safari16`, `Safari16_5`, `Safari17_0`, `Safari17_2_1`, `Safari17_4_1`, `Safari17_5`, `Safari17_6`, `Safari18`, `Safari18_2`, `Safari18_3`, `Safari18_3_1`, `Safari18_5`, `Safari26`, `Safari26_1`, `Safari26_2`, `SafariIos16_5`, `SafariIos17_2`, `SafariIos17_4_1`, `SafariIos18_1_1`, `SafariIos26`, `SafariIos26_2`, `SafariIPad18`, `SafariIPad26`, `SafariIpad26_2` |
@@ -20,12 +20,14 @@ See the [crate documentation](https://docs.rs/wreq-util/latest/wreq_util) for mo
20
20
 
21
21
  ## Example
22
22
 
23
+ This vendored copy uses the development wreq revision pinned in the [root Cargo.toml](../../Cargo.toml). Building it independently requires the same Git patches.
24
+
23
25
  The following example uses the [Tokio](https://tokio.rs) runtime with optional features enabled by adding this to your `Cargo.toml`:
24
26
 
25
27
  ```toml
26
28
  [dependencies]
27
29
  tokio = { version = "1", features = ["full"] }
28
- wreq = "6.0.0-rc"
30
+ wreq = "0.16.1"
29
31
  wreq-util = "3.0.0-rc"
30
32
  ```
31
33
 
@@ -38,7 +40,7 @@ use wreq_util::Emulation;
38
40
  #[tokio::main]
39
41
  async fn main() -> wreq::Result<()> {
40
42
  // Build a client
41
- let client = Client::builder()
43
+ let client = Client::builder_tokio()
42
44
  .emulation(Emulation::Chrome147)
43
45
  .build()?;
44
46
 
Binary file
Binary file
Binary file
@@ -5,7 +5,7 @@ unless defined?(Wreq)
5
5
  # HTTP client with extensive configuration options.
6
6
  #
7
7
  # This class wraps a native Rust implementation providing high-performance
8
- # HTTP/1.1 and HTTP/2 client functionality with support for connection pooling,
8
+ # HTTP/1.1, HTTP/2 and HTTP/3 client functionality with support for connection pooling,
9
9
  # compression, redirects, proxies, and fine-grained timeout controls.
10
10
  #
11
11
  # The client is thread-safe and maintains an internal connection pool for
@@ -110,25 +110,37 @@ unless defined?(Wreq)
110
110
  # allowing the reuse of local addresses in TIME_WAIT state. Useful for
111
111
  # reducing port exhaustion in high-throughput scenarios.
112
112
  #
113
- # @param pool_idle_timeout [Integer, nil] Time in seconds before idle
114
- # connections in the pool are evicted and closed. Helps free up
115
- # resources for long-running applications.
113
+ # @param pool_idle_timeout [Integer, nil] Idle connection reuse timeout in
114
+ # seconds. Defaults to 90 when omitted or nil. Does not expire a busy
115
+ # HTTP/2 or HTTP/3 connection.
116
116
  #
117
- # @param pool_max_idle_per_host [Integer, nil] Maximum number of idle
118
- # connections to maintain per host in the connection pool. Connections
119
- # beyond this limit will be closed immediately after use.
117
+ # @param pool_max_idle_per_host [Integer, nil] Maximum idle HTTP/1
118
+ # connections retained per compatibility group, which includes the host
119
+ # and connection configuration. Defaults to unlimited when omitted or
120
+ # nil; 0 disables connection reuse. Does not limit active connections.
120
121
  #
121
- # @param pool_max_size [Integer, nil] Total maximum size of the connection
122
- # pool across all hosts. Once reached, new requests may need to wait
123
- # for existing connections to become available.
122
+ # @param pool_max_size [Integer, nil] Maximum compatibility groups retaining
123
+ # idle HTTP/1 or shared HTTP/2 and HTTP/3 connections. Defaults to unlimited
124
+ # when omitted, nil or 0. A full pool evicts the least recently used idle
125
+ # group; it does not make requests wait or limit physical connections.
124
126
  #
125
127
  # @param http1_only [Boolean, nil] Force the client to use HTTP/1.1 only,
126
128
  # even if HTTP/2 is available. Useful for compatibility with servers
127
- # that have problematic HTTP/2 implementations.
129
+ # that have problematic HTTP/2 implementations. Cannot be combined with
130
+ # http2_only or http3_only. An explicit request version overrides this
131
+ # preference.
128
132
  #
129
133
  # @param http2_only [Boolean, nil] Force the client to use HTTP/2 only.
130
134
  # Requests to servers that don't support HTTP/2 will fail. Cannot be
131
- # combined with http1_only.
135
+ # combined with http1_only or http3_only. An explicit request version
136
+ # overrides this preference, including HTTP/3 over QUIC.
137
+ #
138
+ # @param http3_only [Boolean, nil] Use HTTP/3 over QUIC without falling back
139
+ # to TCP. Defaults to false when omitted or nil. Requires HTTPS and UDP
140
+ # connectivity. Cannot be combined with http1_only or http2_only. An
141
+ # explicit HTTP/1 or HTTP/2 request version overrides this preference.
142
+ # HTTP/HTTPS proxies, including environment proxies, cannot carry HTTP/3;
143
+ # use no_proxy: true, a SOCKS5 UDP proxy, or a QUIC MASQUE proxy instead.
132
144
  #
133
145
  # @param https_only [Boolean, nil] Reject plain HTTP connections and
134
146
  # only allow HTTPS. Provides an additional layer of security by
@@ -149,7 +161,9 @@ unless defined?(Wreq)
149
161
  # environment.
150
162
  #
151
163
  # @param proxy [String, nil] Proxy server URI to use for all requests.
152
- # Supports HTTP, HTTPS, and SOCKS5 proxies. Format: "protocol://host:port"
164
+ # Supports HTTP, HTTPS, SOCKS and QUIC proxies. HTTP/3 can use SOCKS5 UDP
165
+ # ASSOCIATE or a `quic://` MASQUE proxy, but not HTTP CONNECT proxies.
166
+ # Format: "protocol://host:port"
153
167
  # Example: "http://proxy.example.com:8080"
154
168
  # @param local_address [String, nil] Bind the client's local source IP address (IPv4/IPv6). Useful on multi-homed hosts to originate connections from a specific address or enforce source routing. Examples: "192.168.1.10", "10.0.0.5", "2001:db8::1". The address must exist on the host and be routable.
155
169
  # @param interface [String, nil] Bind sockets to a network interface on
@@ -69,7 +69,6 @@ module Wreq
69
69
  Chrome155 = nil
70
70
  Chrome156 = nil
71
71
  Chrome157 = nil
72
- Chrome158 = nil
73
72
 
74
73
  Edge101 = nil
75
74
  Edge122 = nil
@@ -268,6 +267,9 @@ module Wreq
268
267
  # for HTTP/2 and automatic default headers. The actual implementation is
269
268
  # provided by Rust.
270
269
  #
270
+ # Profiles configure TLS over TCP, HTTP/2 and request headers. They do not
271
+ # configure HTTP/3 or QUIC fingerprints; HTTP/3 uses the backend defaults.
272
+ #
271
273
  # Construction generates the native configuration once. For Chrome 152/153,
272
274
  # the TLS trust_anchors extension's ID order is randomized at construction;
273
275
  # Chrome 154 and later sort those IDs by their raw bytes instead. Reusing this object
@@ -42,7 +42,7 @@ module Wreq
42
42
 
43
43
  # Value-based equality. Returns true when both represent the same HTTP method.
44
44
  # @param other [Object]
45
- # @return [Boolean]
45
+ # @return [Boolean]
46
46
  unless method_defined?(:==)
47
47
  def ==(other)
48
48
  end
@@ -77,7 +77,14 @@ module Wreq
77
77
  HTTP_10 = nil # @return [Wreq::Version] HTTP/1.0
78
78
  HTTP_11 = nil # @return [Wreq::Version] HTTP/1.1
79
79
  HTTP_2 = nil # @return [Wreq::Version] HTTP/2
80
- HTTP_3 = nil # @return [Wreq::Version] HTTP/3
80
+ # Select HTTP/3 over QUIC with `version: Wreq::Version::HTTP_3` on a request.
81
+ # To use it by default, construct a client with `http3_only: true` instead.
82
+ # Requires an HTTPS URL and a reachable UDP endpoint. There is no automatic
83
+ # Alt-Svc discovery or fallback to HTTP/1.1 or HTTP/2.
84
+ # HTTP CONNECT proxies cannot carry these requests; use a direct connection,
85
+ # a SOCKS5 UDP relay or a `quic://` MASQUE proxy.
86
+ # @return [Wreq::Version] HTTP/3
87
+ HTTP_3 = nil
81
88
  end
82
89
 
83
90
  # Returns a string representation of the HTTP version.
@@ -46,7 +46,6 @@ class EmulationTest < Minitest::Test
46
46
  Wreq::Profile::Chrome155 => "Chrome155",
47
47
  Wreq::Profile::Chrome156 => "Chrome156",
48
48
  Wreq::Profile::Chrome157 => "Chrome157",
49
- Wreq::Profile::Chrome158 => "Chrome158",
50
49
  Wreq::Profile::Firefox152 => "Firefox152"
51
50
  }.each do |profile, name|
52
51
  assert_equal name, profile.to_s
@@ -227,12 +227,21 @@ class OptionValidationTest < Minitest::Test
227
227
  end
228
228
 
229
229
  def test_protocol_only_options_are_mutually_exclusive
230
- error = assert_raises(ArgumentError) do
231
- Wreq::Client.new(http1_only: true, http2_only: true)
230
+ [:http1_only, :http2_only, :http3_only].combination(2) do |first, second|
231
+ error = assert_raises(ArgumentError) do
232
+ Wreq::Client.new(**{first => true, second => true})
233
+ end
234
+
235
+ assert_includes error.message, ":#{first}"
236
+ assert_includes error.message, ":#{second}"
232
237
  end
233
238
 
234
- assert_includes error.message, ":http1_only"
235
- assert_includes error.message, ":http2_only"
239
+ assert_instance_of Wreq::Client,
240
+ Wreq::Client.new(http3_only: true, http1_only: false, http2_only: nil)
241
+ assert_instance_of Wreq::Client,
242
+ Wreq::Client.new(http1_only: true, http3_only: false)
243
+ assert_instance_of Wreq::Client,
244
+ Wreq::Client.new(http2_only: true, http3_only: nil)
236
245
  end
237
246
 
238
247
  def test_validation_reports_the_first_failed_rule
data/wreq.gemspec CHANGED
@@ -1,13 +1,25 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "json"
4
+
3
5
  Gem::Specification.new do |spec|
4
6
  spec.name = "wreq"
5
7
  # RubyGems integrates and expects `cargo`.
6
8
  # Read more about
7
9
  # [Gem::Ext::CargoBuilder](https://github.com/rubygems/rubygems/blob/v3.5.23/lib/rubygems/ext/cargo_builder.rb)
8
10
  #
9
- # RubyGems accepts a fourth version segment, which Cargo does not.
10
- spec.version = File.read(File.join(__dir__, "VERSION")).strip
11
+ # wreq relies on "version" in `Cargo.toml` for the release process. You can read this gem spec with:
12
+ # `bundle exec ruby -e 'puts Gem::Specification.load("wreq.gemspec")'`
13
+ #
14
+ # keep in sync the key "wreq-ruby" with `Rakefile`.
15
+ #
16
+ # uses `cargo` to extract the version.
17
+ cargo_output = `cargo metadata --format-version 1`
18
+ cargo_output.force_encoding("UTF-8")
19
+ spec.version = JSON.parse(cargo_output.strip)
20
+ .fetch("packages")
21
+ .find { |p| p["name"] == "wreq-ruby" }
22
+ .fetch("version")
11
23
  spec.authors = ["SearchApi"]
12
24
  spec.email = ["support@searchapi.io"]
13
25
  spec.summary = "Ruby bindings for wreq, an HTTP client with TLS/HTTP2 browser fingerprinting"
@@ -44,7 +56,7 @@ Gem::Specification.new do |spec|
44
56
  # Exclude non-Ruby files from RDoc to prevent parsing errors
45
57
  spec.rdoc_options = ["--exclude", "Cargo\\..*", "--exclude", "\\.rs$"]
46
58
 
47
- spec.requirements = ["Rust >= 1.100"]
59
+ spec.requirements = ["Rust >= 1.98"]
48
60
  # use a Ruby version which:
49
61
  # - supports Rubygems with the ability of compilation of Rust gem
50
62
  # - not end of life
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wreq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2.2
4
+ version: 1.3.3
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - SearchApi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-11-20 00:00:00.000000000 Z
11
+ date: 2026-11-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An easy and powerful Ruby HTTP client with advanced browser fingerprinting
14
14
  that accurately emulates Chrome, Edge, Firefox, Safari, Opera, and OkHttp with precise
@@ -24,8 +24,6 @@ files:
24
24
  - LICENSE
25
25
  - README.md
26
26
  - Rakefile
27
- - VERSION
28
- - crates/README.md
29
27
  - crates/wreq-util/.github/FUNDING.yml
30
28
  - crates/wreq-util/.github/ISSUE_TEMPLATE/bug_report.md
31
29
  - crates/wreq-util/.github/ISSUE_TEMPLATE/custom.md
@@ -123,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
121
  - !ruby/object:Gem::Version
124
122
  version: '0'
125
123
  requirements:
126
- - Rust >= 1.100
124
+ - Rust >= 1.98
127
125
  rubygems_version: 3.5.23
128
126
  signing_key:
129
127
  specification_version: 4
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.3.2.2
data/crates/README.md DELETED
@@ -1,5 +0,0 @@
1
- # Local Rust dependencies
2
-
3
- - [`wreq-util`](wreq-util/) is a local copy of [0x676e67/wreq-util](https://github.com/0x676e67/wreq-util). The root [`Cargo.toml`](../Cargo.toml) resolves it from `crates/wreq-util` through `[patch.crates-io]`.
4
-
5
- When building or testing `wreq-util` on its own, use the Git dependency patches from the root manifest of the same branch. Cargo does not inherit those patches from the parent package.