Skip to main content

Module emulate

Module emulate 

Available on crate features std and ua only.
Expand description

Emulate user agent (UA) profiles.

This module contains the profiles for the User Agent (UA) that are used for emulation.

Learn more about User Agents (UA) and why Rama supports it at https://ramaproxy.org/book/intro/user_agent.html.

§Ethics

At Plabayo, we support the principle that information wants to be free, provided it is pursued ethically and within the bounds of applicable law.

We do not endorse or support any malicious use of our technology. We advocate for the programmatic retrieval of publicly available data only when conducted responsibly — in a manner that is respectful, does not impose an undue burden on servers, and avoids causing disruption, harm, or degradation to third-party services.

Structs§

PreserveClientHints
Request extension that keeps the caller’s own client hint values (such as Sec-CH-UA) while the rest of the request is emulated.
PreserveHeaderUserAgent
Request extension that keeps the caller’s own User-Agent value while the rest of the request is emulated.
ProfileEmulateHttpConnectModifier
Connector that prepares and checks the connection variant of the profile selected by ProfileEmulateLayer.
ProfileEmulateHttpConnectModifierLayer
Layer for ProfileEmulateHttpConnectModifier.
ProfileEmulateHttpRequestModifier
Draw the request variant after the pooled connection and protocol are known.
ProfileEmulateHttpRequestModifierLayer
Layer for ProfileEmulateHttpRequestModifier.
ProfileEmulateLayer
Select a captured profile and publish its immutable emulation context.
ProfileEmulateRelayRequestModifier
ProfileEmulateHttpRequestModifier for requests relayed on a connection that the profile connector did not open, such as a MITM proxy’s egress connection.
ProfileEmulateRelayRequestModifierLayer
Layer for ProfileEmulateRelayRequestModifier.
ProfileEmulateService
Request service produced by ProfileEmulateLayer.
SelectedUserAgentProfile
Identity of the profile selected by ProfileEmulateLayer.

Enums§

ProfileSelectFallback
What ProfileEmulateLayer does when no profile matches the requested identity.

Traits§

ProfileSource
Source of captured profiles for ProfileEmulateLayer.