pub struct FingerprintSet {
pub main: Fingerprint,
pub test_alpn_http1: Fingerprint,
pub test_no_alpn: Fingerprint,
}
Expand description
Represents a collection of Fingerprint
instances, each configured with different ALPN extensions.
Fields§
§main: Fingerprint
The default Fingerprint
variant configured for HTTP/2 (h2) clients.
This is the primary variant used for most scenarios and is designed to be consistent with browsers.
test_alpn_http1: Fingerprint
A Fingerprint
variant specifically tailored for clients that use HTTP/1.1 (http1).
This variant is useful for testing or scenarios where HTTP/2 support is unavailable.
test_no_alpn: Fingerprint
A Fingerprint
variant without any specific ALPN settings, suitable for use with both HTTP/1.1 and non-HTTP clients.
This variant provides a craftible option for testing or supporting clients where ALPN may not be applicable.
Methods from Deref<Target = Fingerprint>§
Sourcepub fn builder(&self) -> FingerprintBuilder
pub fn builder(&self) -> FingerprintBuilder
Creates a fingerprint builder that allow you to tweak the fingerprint and patch the client config. See also crate::ClientConfig::with_fingerprint
Trait Implementations§
Source§impl Deref for FingerprintSet
impl Deref for FingerprintSet
Source§fn deref(&self) -> &Self::Target
fn deref(&self) -> &Self::Target
Provides implicit access to the FingerprintSet::main
variant when a FingerprintSet
is dereferenced.
This allows the main
variant to be used as the default when no explicit selection is made from the set.
Source§type Target = Fingerprint
type Target = Fingerprint
Source§impl Generator<FingerprintSet> for __StaticInitGeneratorFor_CHROME_108
Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks"
or Windows or macOS or iOS only.
impl Generator<FingerprintSet> for __StaticInitGeneratorFor_CHROME_108
target_os="vxworks"
or Windows or macOS or iOS only.fn generate(&self) -> FingerprintSet
Source§impl Generator<FingerprintSet> for __StaticInitGeneratorFor_CHROME_112
Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks"
or Windows or macOS or iOS only.
impl Generator<FingerprintSet> for __StaticInitGeneratorFor_CHROME_112
target_os="vxworks"
or Windows or macOS or iOS only.fn generate(&self) -> FingerprintSet
Source§impl Generator<FingerprintSet> for __StaticInitGeneratorFor_FIREFOX_105
Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks"
or Windows or macOS or iOS only.
impl Generator<FingerprintSet> for __StaticInitGeneratorFor_FIREFOX_105
target_os="vxworks"
or Windows or macOS or iOS only.fn generate(&self) -> FingerprintSet
Source§impl Generator<FingerprintSet> for __StaticInitGeneratorFor_RUSTLS_TEST
Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks"
or Windows or macOS or iOS only.
impl Generator<FingerprintSet> for __StaticInitGeneratorFor_RUSTLS_TEST
target_os="vxworks"
or Windows or macOS or iOS only.fn generate(&self) -> FingerprintSet
Source§impl Generator<FingerprintSet> for __StaticInitGeneratorFor_SAFARI_17_1
Available on Linux or Android or FreeBSD or DragonFly BSD or NetBSD or OpenBSD or Solaris or illumos or Emscripten or Haiku or L4Re or Fuchsia or Redox or target_os="vxworks"
or Windows or macOS or iOS only.
impl Generator<FingerprintSet> for __StaticInitGeneratorFor_SAFARI_17_1
target_os="vxworks"
or Windows or macOS or iOS only.