Versions in this module Expand all Collapse all v1 v1.0.0 Feb 22, 2026 Changes in this version + var ErrUnsupportedPlatform = errors.New("unsupported platform") + var ErrUnsupportedVersion = errors.New("unsupported version") + type Brand string + const BrandBrave + const BrandChrome + const BrandEdge + type ClientSpec struct + func Chromium(brand Brand, version string) (*ClientSpec, error) + func Firefox(version string) (*ClientSpec, error) + func Safari(version string) (*ClientSpec, error) + func (c *ClientSpec) ConfigureTransport(t *http.Transport, platform Platform) error + func (c *ClientSpec) HTTP2Opts() *HTTP2Options + func (c *ClientSpec) PseudoHeaderOrder() []string + func (c *ClientSpec) Version() string + type HTTP2Options struct + ConnectionFlow uint32 + HeaderPriority *http2.PriorityParam + HeaderTableSize uint32 + InitialWindowSize uint32 + MaxHeaderListSize uint32 + PseudoHeaderOrder []string + Settings []http2.Setting + type Platform string + const PlatformIOS + const PlatformIPadOS + const PlatformLinux + const PlatformMac + const PlatformWindows + type Transport struct + func NewTransport(spec *ClientSpec, platform Platform, opts ...TransportOption) (*Transport, error) + func (t *Transport) RoundTrip(req *http.Request) (*http.Response, error) + type TransportOption func(*transportConfig) + func WithBaseTransport(t *http.Transport) TransportOption