{"modulePath":"github.com/roachadam/mimicry","version":"v0.7.0","isStandardLibrary":false,"packages":{"items":[{"path":"github.com/roachadam/mimicry","name":"mimicry","synopsis":"Package mimicry is an HTTP client that looks like a real browser on the network: the same TLS handshake, HTTP/2 and HTTP/3 settings, and headers in the same order.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/cmd/mimicry-core","name":"main","synopsis":"Command mimicry-core serves mimicry to the Python and Node SDKs (decision 0069): each host process starts it as a child and speaks the protocol of internal/rpc/wire and proto/ over its stdin and stdout, reading stdin and writing stdout: one inherited socket as both (one end of a socketpair) or a socket each (Node's 'pipe' stdio) on Linux and macOS, pipes on Windows.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/cmd/pins","name":"main","synopsis":"Command pins prints the verified certificate chain a site presents to a profile's browser, with each certificate's pins, and marks the one to pin (mimicry.FetchPins; no request is sent):","isRedistributable":true},{"path":"github.com/roachadam/mimicry/cmd/profilegen","name":"main","synopsis":"Command profilegen generates profiles/profiles.gen.go from profiles/data/*.json: accessors per profile and per browser's newest version on each platform (ChromeMacOS, ChromeWindows; decision 0047), and the name lists.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/cookies","name":"cookies","synopsis":"Package cookies is a cookie jar that keeps and sends cookies as a given browser does: SameSite, third-party and partitioned cookies, redirects, order, and byte-for-byte values, by the rules in a profile's cookies section (profile.Cookies) on top of RFC 6265bis.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/altsvc","name":"altsvc","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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/checked","name":"checked","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/cors","name":"cors","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/dial","name":"dial","synopsis":"Package dial is the single path from an address to a connected socket, directly or through an HTTP, HTTPS, SOCKS5 or SOCKS4 proxy (the TLS to an https proxy and its HTTP/2 streams are the engine's, through ProxyTLS and TunnelH2), and to a UDP socket for QUIC, directly, through a SOCKS5 UDP association, or as a CONNECT-UDP stream of the engine's HTTP/3 connection to a proxy (ConnectUDP).","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/engine/native","name":"native","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/fingerprint","name":"fingerprint","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/h1","name":"h1","synopsis":"Package h1 speaks HTTP/1.1 over an established connection, writing each request head as the profile's browser does.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/h2","name":"h2","synopsis":"Package h2 is mimicry's HTTP/2 client.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/h3","name":"h3","synopsis":"Package h3 is mimicry's HTTP/3 client (RFC 9114) on internal/quic, with field sections encoded by internal/qpack.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/handshake","name":"handshake","synopsis":"Package handshake performs the TLS handshake and ALPN from a fingerprint plan and keeps session tickets for resumption.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/headerorder","name":"headerorder","synopsis":"Package headerorder merges a request's headers with a profile's defaults and puts them in the profile's order.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/hpack","name":"hpack","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/httpsrr","name":"httpsrr","synopsis":"Package httpsrr looks up the DNS HTTPS records (RFC 9460) of the origins mimicry connects to, for the ECH configurations (RFC 9849) and ALPN they carry, as Chrome and Firefox do.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/pins","name":"pins","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/platform","name":"platform","synopsis":"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).","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/pool","name":"pool","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/proxy","name":"proxy","synopsis":"Package proxy connects through SOCKS5, SOCKS4 and HTTP CONNECT proxies, bounded by the caller's context, and carries UDP datagrams through SOCKS5 UDP associations (Association).","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/qpack","name":"qpack","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/quic","name":"quic","synopsis":"Package quic implements the QUIC protocol.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/quic/qlog","name":"qlog","synopsis":"Package qlog serializes qlog events.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/quic/quicwire","name":"quicwire","synopsis":"Package quicwire encodes and decode QUIC/HTTP3 wire encoding types, particularly variable-length integers.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/quic/testcert","name":"testcert","synopsis":"Package testcert contains a test-only localhost certificate.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/rpc/client","name":"client","synopsis":"Package client is a Go client of mimicry-core's protocol (decision 0069), as an SDK speaks it: Hello first, calls on streams of their own, bodies and WebSocket messages as DATA, VerifyConnection answered, the core's notices handed off without blocking the reader.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/rpc/convert","name":"convert","synopsis":"Package convert turns mimicry-core's protocol messages (internal/rpc/pb) into mimicry's public types and back (decision 0069): a Config with its callbacks as data, a request and its options, a response, a plan, a connection's TLS state, cookies, a traffic meter's counts, errors as codes, and the framing of a WebSocket's messages inside DATA.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/rpc/pb","name":"pb","synopsis":"Package pb is the Go code protoc-gen-go generates from the schema in proto/mimicry/v1 (decision 0069): the messages of mimicry-core's protocol.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/rpc/server","name":"server","synopsis":"Package server is mimicry-core's server (decision 0069): it answers one SDK's calls on one connection of the wire protocol (internal/rpc/wire), their messages those of internal/rpc/pb, through mimicry's public API.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/rpc/wire","name":"wire","synopsis":"Package wire is the framed, multiplexed protocol between mimicry-core and the language SDKs (decision 0069): frames, streams, per-stream credit, RESET and EVENT over any io.ReadWriteCloser.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/site","name":"site","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/testutil","name":"testutil","synopsis":"Package testutil holds test certificates and helpers shared by mimicry's tests.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/traffic","name":"traffic","synopsis":"Package traffic counts the bytes mimicry's sockets send and receive (Config.Traffic, decision 0070).","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/weburl","name":"weburl","synopsis":"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).","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/ws","name":"ws","synopsis":"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.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/internal/zdeflate","name":"zdeflate","synopsis":"Package zdeflate is permessage-deflate (RFC 7692) as the browsers write it.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/profile","name":"profile","synopsis":"Package profile defines a browser profile.","isRedistributable":true},{"path":"github.com/roachadam/mimicry/profiles","name":"profiles","synopsis":"Package profiles holds the built-in browser profiles, one embedded JSON file per browser version and platform, taken from captures of the real browser.","isRedistributable":true}],"total":40}}
