Class: Wreq::Emulation
- Inherits:
-
Object
- Object
- Wreq::Emulation
- Defined in:
- lib/wreq_ruby/emulate.rb
Overview
Emulation option wrapper.
This class combines a fingerprint profile, an OS platform, and toggles
for HTTP/2 and automatic default headers. The actual implementation is
provided by Rust.
profile: defaults to the library's default profile when omitted.
platform: defaults to the library's default platform when omitted.
Class Method Summary collapse
-
.new(profile: nil, platform: nil, http2: true, headers: true) ⇒ Wreq::Emulation
Configured emulation settings.
Class Method Details
.new(profile: nil, platform: nil, http2: true, headers: true) ⇒ Wreq::Emulation
Returns Configured emulation settings.
230 231 |
# File 'lib/wreq_ruby/emulate.rb', line 230 def self.new(profile: nil, platform: nil, http2: true, headers: true) end |