internal/

directory
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: MIT

Directories

Path Synopsis
Package altsvc keeps origins' HTTP/3 alternatives, learnt from Alt-Svc response headers (RFC 7838): one engine's alone, or shared by every engine given the same Cache, as a browser's tabs share one, and saved and loaded as JSON, as browsers keep it across restarts.
Package altsvc keeps origins' HTTP/3 alternatives, learnt from Alt-Svc response headers (RFC 7838): one engine's alone, or shared by every engine given the same Cache, as a browser's tabs share one, and saved and loaded as JSON, as browsers keep it across restarts.
Package checked hands the root package the Spec inside a profile.Profile, which package profile keeps unexported so that no caller can change a profile clients were built from.
Package checked hands the root package the Spec inside a profile.Profile, which package profile keeps unexported so that no caller can change a profile clients were built from.
Package cors is the Fetch standard's CORS protocol as browsers apply it: when a cross-origin fetch() or XHR needs a preflight, whether a preflight's answer or a redirect allows the request, and the preflight cache.
Package cors is the Fetch standard's CORS protocol as browsers apply it: when a cross-origin fetch() or XHR needs a preflight, whether a preflight's answer or a redirect allows the request, and the preflight cache.
Package dial is the single path from an address to a connected socket, directly or through an HTTP or SOCKS5 proxy, and to a UDP socket for QUIC, directly or through a SOCKS5 UDP association.
Package dial is the single path from an address to a connected socket, directly or through an HTTP or SOCKS5 proxy, and to a UDP socket for QUIC, directly or through a SOCKS5 UDP association.
engine
native
Package native is the pure-Go engine: the one place that assembles the request path (pool, dial, handshake, then h1 or h2 by ALPN, or h3 over QUIC), routing each request to its pool key and retrying on another connection a request nothing of which was sent.
Package native is the pure-Go engine: the one place that assembles the request path (pool, dial, handshake, then h1 or h2 by ALPN, or h3 over QUIC), routing each request to its pool key and retrying on another connection a request nothing of which was sent.
Package fingerprint compiles a profile once into an immutable plan, then fills in per-connection randomness (GREASE, extension shuffle, key shares) to produce each connection's ClientHello.
Package fingerprint compiles a profile once into an immutable plan, then fills in per-connection randomness (GREASE, extension shuffle, key shares) to produce each connection's ClientHello.
Package h1 speaks HTTP/1.1 over an established connection, writing each request head as the profile's browser does.
Package h1 speaks HTTP/1.1 over an established connection, writing each request head as the profile's browser does.
Package h2 is mimicry's HTTP/2 client.
Package h2 is mimicry's HTTP/2 client.
Package h3 is mimicry's HTTP/3 client (RFC 9114) on internal/quic, with field sections encoded by internal/qpack.
Package h3 is mimicry's HTTP/3 client (RFC 9114) on internal/quic, with field sections encoded by internal/qpack.
Package handshake performs the TLS handshake and ALPN from a fingerprint plan and keeps session tickets for resumption.
Package handshake performs the TLS handshake and ALPN from a fingerprint plan and keeps session tickets for resumption.
Package headerorder merges a request's headers with a profile's defaults and puts them in the profile's order.
Package headerorder merges a request's headers with a profile's defaults and puts them in the profile's order.
Package hpack is an HPACK encoder whose choices follow a browser's (profile.HPACK): which fields enter the dynamic table, which entry a literal's name refers to, and when strings are Huffman-coded.
Package hpack is an HPACK encoder whose choices follow a browser's (profile.HPACK): which fields enter the dynamic table, which entry a literal's name refers to, and when strings are Huffman-coded.
Package pins checks connections against the root package's Config.Pins (decision 0032): it parses the pins, finds the one covering a host, matches it against a verified chain, and lists a chain's pins for FetchPins.
Package pins checks connections against the root package's Config.Pins (decision 0032): it parses the pins, finds the one covering a host, matches it against a verified chain, and lists a chain's pins for FetchPins.
Package platform says which profiles share a browser's network stack, so that a profile may inherit captures from the other's: Safari on iOS from Safari on macOS (decision 0051), Chrome and Firefox on iOS from Safari of their WebKit (decision 0053).
Package platform says which profiles share a browser's network stack, so that a profile may inherit captures from the other's: Safari on iOS from Safari on macOS (decision 0051), Chrome and Firefox on iOS from Safari of their WebKit (decision 0053).
Package pool keeps connections by key (scheme, host and port, partition, proxy): one shared HTTP/2 or HTTP/3 connection, idle HTTP/1.1 ones, the dial in progress and the requests waiting for a slot under Config.MaxExclusive.
Package pool keeps connections by key (scheme, host and port, partition, proxy): one shared HTTP/2 or HTTP/3 connection, idle HTTP/1.1 ones, the dial in progress and the requests waiting for a slot under Config.MaxExclusive.
Package proxy connects through SOCKS5 and HTTP CONNECT proxies, bounded by the caller's context, and carries UDP datagrams through SOCKS5 UDP associations (Association).
Package proxy connects through SOCKS5 and HTTP CONNECT proxies, bounded by the caller's context, and carries UDP datagrams through SOCKS5 UDP associations (Association).
Package qpack is a QPACK (RFC 9204) encoder whose dynamic table use and Huffman rule follow a browser's, and a decoder for the peer's field sections and encoder stream.
Package qpack is a QPACK (RFC 9204) encoder whose dynamic table use and Huffman rule follow a browser's, and a decoder for the peer's field sections and encoder stream.
Package quic implements the QUIC protocol.
Package quic implements the QUIC protocol.
qlog
Package qlog serializes qlog events.
Package qlog serializes qlog events.
quicwire
Package quicwire encodes and decode QUIC/HTTP3 wire encoding types, particularly variable-length integers.
Package quicwire encodes and decode QUIC/HTTP3 wire encoding types, particularly variable-length integers.
testcert
Package testcert contains a test-only localhost certificate.
Package testcert contains a test-only localhost certificate.
Package site computes what browsers call a site: a scheme and a registrable domain (public suffix list), the unit of SameSite cookies, sec-fetch-site and cookie partitions; and the ASCII form of a host name (ASCII), in which browsers send and match it.
Package site computes what browsers call a site: a scheme and a registrable domain (public suffix list), the unit of SameSite cookies, sec-fetch-site and cookie partitions; and the ASCII form of a host name (ASCII), in which browsers send and match it.
Package testutil holds test certificates and helpers shared by mimicry's tests.
Package testutil holds test certificates and helpers shared by mimicry's tests.
Package weburl holds what mimicry shares about URLs as browsers send them (the WHATWG URL standard, as the urls capture measures it): the percent-encode sets every browser measured applies, and a URL's path serialized as mimicry's canonical form leaves it, where Go's own (url.URL.EscapedPath) would encode characters a browser sends as they are ('|' for Firefox and Safari).
Package weburl holds what mimicry shares about URLs as browsers send them (the WHATWG URL standard, as the urls capture measures it): the percent-encode sets every browser measured applies, and a URL's path serialized as mimicry's canonical form leaves it, where Go's own (url.URL.EscapedPath) would encode characters a browser sends as they are ('|' for Firefox and Safari).
Package ws is the WebSocket protocol (RFC 6455) after the handshake, as the profile's browser speaks it: framing, permessage-deflate through internal/zdeflate, HTTP/2 DATA packing, pings and the close handshake.
Package ws is the WebSocket protocol (RFC 6455) after the handshake, as the profile's browser speaks it: framing, permessage-deflate through internal/zdeflate, HTTP/2 DATA packing, pings and the close handshake.
Package zdeflate is permessage-deflate (RFC 7692) as the browsers write it.
Package zdeflate is permessage-deflate (RFC 7692) as the browsers write it.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL