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 profile platforms share a browser's network stack, so that a profile on one may inherit captures from the other's (decision 0051).
|
Package platform says which profile platforms share a browser's network stack, so that a profile on one may inherit captures from the other's (decision 0051). |
|
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.
|
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. |
|
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 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. |
Click to show internal directories.
Click to hide internal directories.