httpreq

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHeader

type HttpHeader interface {
	// Get the first header value associated with the given key.
	Get(key string) string
	// Set sets the header entries associated with key to the
	// single element value. Replaces any existing values.
	Set(key, value string)
}

type HttpRequest

type HttpRequest interface {
	HttpHeader
	// Get basic TLS connection details
	GetTLS() *tls.ConnectionState
	// Get host or host:port to connect to
	GetHost() string
}

HttpRequest type is used for generic HTTP request handling if we wish to use a library other than net/http.

Jump to

Keyboard shortcuts

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