mimic

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

README

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Chrome101 = &ClientSpec{
		h2Options: chromeH2Options,
	}
)

Functions

This section is empty.

Types

type ClientSpec

type ClientSpec struct {
	// contains filtered or unexported fields
}

func (*ClientSpec) ConfigureTransport

func (c *ClientSpec) ConfigureTransport(t1 *http.Transport)

ConfigureTransport configures a net/http HTTP/1 Transport to follow the client's spec

func (*ClientSpec) GetTLSSpec

func (c *ClientSpec) GetTLSSpec() *utls.ClientHelloSpec

func (*ClientSpec) PseudoHeaderOrder

func (c *ClientSpec) PseudoHeaderOrder() []string

type H2Options

type H2Options struct {
	Settings          []http2.Setting
	PseudoHeaderOrder []string
	MaxHeaderListSize uint32
	InitialWindowSize uint32
	HeaderTableSize   uint32
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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