Versions in this module Expand all Collapse all v0 v0.2.0 Oct 30, 2026 Changes in this version + const HTTP2SettingEnableConnectProtocol + const HTTP2SettingEnablePush + const HTTP2SettingHeaderTableSize + const HTTP2SettingInitialWindowSize + const HTTP2SettingMaxConcurrentStreams + const HTTP2SettingMaxFrameSize + const HTTP2SettingMaxHeaderListSize + const HTTP2SettingNoRFC7540Priorities + const HeaderOrderKey + const PHeaderOrderKey + var ErrALPN = tlsdial.ErrALPN + var ErrCertificate = tlsdial.ErrCertificate + var ErrClosed = dispatch.ErrClosed + var ErrConfig = errors.New("eidolon: invalid configuration") + var ErrDNS = dispatch.ErrDNS + var ErrECHRejected = tlsdial.ErrECHRejected + var ErrECHRequired = dispatch.ErrECHRequired + var ErrExactHeadersRedirect = dispatch.ErrExactHeadersRedirect + var ErrHTTP2InadequateSecurity = dispatch.ErrHTTP2InadequateSecurity + var ErrHeaderTooLarge = http1.ErrHeaderTooLarge + var ErrInvalidECHConfig = dispatch.ErrInvalidECHConfig + var ErrMalformedResponse = http1.ErrMalformedResponse + var ErrProfile = tlsdial.ErrProfile + var ErrProtocolPolicy = dispatch.ErrProtocolPolicy + var ErrProxy = proxy.ErrProxy + var ErrProxyAuth = proxy.ErrProxyAuth + var ErrRetryBudget = dispatch.ErrRetryBudget + var ErrTLS12Policy = tlsdial.ErrTLS12Policy + var ErrTooManyRedirects = errors.New("eidolon: stopped after 20 redirects") + func Akamai(s HTTP2Settings, pseudo []string) string + func ClientHelloFromRaw(raw []byte, opts ...ClientHelloOption) (func() (*utls.ClientHelloSpec, error), error) + func NewCookieJar() http.CookieJar + func WithExactHeaders(ctx context.Context, fields ...HeaderField) context.Context + func WithFetchDest(ctx context.Context, dest FetchDest) context.Context + type ClientHelloOption func(*clientHelloConfig) + func WithShuffledExtensions() ClientHelloOption + type DestHeaders struct + Accept string + Mode string + Navigation bool + Priority string + UpgradeInsecureRequests bool + User bool + type ECHMode int + const ECHAuto + const ECHDisabled + const ECHRequired + type FetchDest string + const FetchDocument + const FetchEmpty + const FetchImage + const FetchScript + const FetchStyle + type HTTP2ALPS int + const HTTP2ALPSChromium + const HTTP2ALPSIgnore + type HTTP2Errors int + const HTTP2ErrorsChromium + const HTTP2ErrorsGo + type HTTP2HPACK int + const HTTP2HPACKChromium + const HTTP2HPACKGo + type HTTP2HeaderFraming int + const HTTP2HeaderFramingChromium + const HTTP2HeaderFramingGo + type HTTP2Priority int + const HTTP2PriorityChromium + const HTTP2PriorityFixed + const HTTP2PriorityNone + type HTTP2PriorityFrame struct + StreamID uint32 + type HTTP2PriorityParam struct + Exclusive bool + StreamDep uint32 + Weight uint8 + type HTTP2Setting struct + ID uint16 + Value uint32 + type HTTP2Settings struct + ALPS HTTP2ALPS + CancelWithoutPing bool + ConnectionWindowUpdate uint32 + Errors HTTP2Errors + FirstStreamID uint32 + HPACK HTTP2HPACK + HeaderFraming HTTP2HeaderFraming + HeaderPriority HTTP2PriorityParam + MaxDataFrameSize uint32 + PrefacePing time.Duration + Priority HTTP2Priority + PriorityFrames []HTTP2PriorityFrame + Settings []HTTP2Setting + WindowUpdate HTTP2WindowUpdate + func ParseAkamai(fp string, base HTTP2Settings) (HTTP2Settings, []string, error) + type HTTP2WindowUpdate int + const HTTP2WindowUpdateChromium + const HTTP2WindowUpdateGo + type HeaderField struct + Name string + Value string + type HttpClient interface + Close func() error + CloseIdleConnections func() + Do func(req *http.Request) (*http.Response, error) + Get func(url string) (*http.Response, error) + GetCookies func(u *url.URL) []*http.Cookie + Head func(url string) (*http.Response, error) + Post func(url, contentType string, body io.Reader) (*http.Response, error) + SetCookies func(u *url.URL, cookies []*http.Cookie) + Transport func() http.RoundTripper + func New(opts ...Option) (HttpClient, error) + type Option func(*config) error + func WithClientHello(spec func() (*utls.ClientHelloSpec, error)) Option + func WithCookieJar(jar http.CookieJar) Option + func WithDefaultOrder(o Order) Option + func WithDialContext(dial func(ctx context.Context, network, addr string) (net.Conn, error)) Option + func WithDisableDecompression() Option + func WithDisableHTTP3() Option + func WithDoH(template string, addrs ...string) Option + func WithECHConfig(authority string, configList []byte) Option + func WithECHMode(m ECHMode) Option + func WithForceHTTP1() Option + func WithForceHTTP2() Option + func WithHTTP2Settings(s HTTP2Settings) Option + func WithHeaderSpelling(names ...string) Option + func WithIdleConnTimeout(d time.Duration) Option + func WithMaxConns(n int) Option + func WithMaxConnsPerHost(n int) Option + func WithMaxDNSQueries(n int) Option + func WithNewConnectionPerRequest() Option + func WithProfile(p Profile) Option + func WithProtocols(ps ...Protocol) Option + func WithProxy(rawURL string) Option + func WithRootCAs(pool *x509.CertPool) Option + func WithStrictTLS12() Option + func WithTimeout(d time.Duration) Option + type Order struct + Header []string + Pseudo []string + type Profile struct + ClientHello func() (*utls.ClientHelloSpec, error) + Dests map[FetchDest]DestHeaders + H1Connection string + H1Spelling []string + HTTP2 HTTP2Settings + Headers []HeaderField + IdleConnTimeout time.Duration + InsecureHeaders []HeaderField + MaxConnsPerHost int + Name string + NavigationOrder []string + PseudoOrder []string + SubresourceOrder []string + func Chrome156Linux() Profile + type Protocol int + const HTTP1 + const HTTP2 + const HTTP3 + func (p Protocol) String() string v0.1.0 Oct 29, 2026