request

package
v0.0.0-...-01f5b33 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultHTTPClient

func GetDefaultHTTPClient() (quicClient, tlsClient *http.Client, err error)

GetDefaultHTTPClient returns http clients over quic and tls

Types

type HTTPType

type HTTPType int

HTTPType describe the the transport layer of a http connection

const (
	// HTTPTypeQUIC describe a http connection using QUIC (over udp)
	HTTPTypeQUIC HTTPType = 1 << (iota)
	// HTTPTypeTLS describe a http connection using TLS (over tcp)
	HTTPTypeTLS
)

func TestHostAvailable

func TestHostAvailable(address string) HTTPType

TestHostAvailable returns which connection type is available or faster Notice: 0 indicates this host cannot be connected in any way

Jump to

Keyboard shortcuts

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