client

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package client is responsible for creating HTTP client and request.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(cfg *config.Config) (req *http.Request, err error)

NewRequest creates a new *http.Request based on *cmd.Options.

Types

type Transport added in v1.4.0

type Transport interface {
	http.RoundTripper

	// Conn returns the last established connection using this transport.
	Conn() (conn net.Conn)
}

Transport is the interface that's used for sending/receiving HTTP requests.

func NewTransport added in v1.2.0

func NewTransport(cfg *config.Config, out *output.Output) (rt Transport, err error)

NewTransport creates a new http.RoundTripper that will be used for making the request.

Directories

Path Synopsis
Package cfcrypto is a package that uses Cloudflare's TLS fork to provide features missing in crypto/tls.
Package cfcrypto is a package that uses Cloudflare's TLS fork to provide features missing in crypto/tls.
Package connectto implements the --connect-to command-line argument logic that allows "redirecting" connections to hosts.
Package connectto implements the --connect-to command-line argument logic that allows "redirecting" connections to hosts.
Package dialer introduces base interfaces for the structs that are responsible for connecting to a host or modifying the connection logic.
Package dialer introduces base interfaces for the structs that are responsible for connecting to a host or modifying the connection logic.
Package proxy implements the proxy logic (--proxy argument of the command-line tool).
Package proxy implements the proxy logic (--proxy argument of the command-line tool).
Package splittls implements the --tls-split-hello logic and allows splitting TLS ClientHello.
Package splittls implements the --tls-split-hello logic and allows splitting TLS ClientHello.
Package websocket is responsible for handling WebSocket connections.
Package websocket is responsible for handling WebSocket connections.

Jump to

Keyboard shortcuts

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