network

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpClient

func NewHttpClient(useragent string, timeout int, followRedirects bool) *http.Client

Types

type HttpServer

type HttpServer struct {
	*http.Server
}

func NewHttpServer

func NewHttpServer(listenAddress string, port int, handler http.Handler) *HttpServer

func (*HttpServer) RunServer

func (s *HttpServer) RunServer()

type HttpTransport

type HttpTransport struct {
	T         http.RoundTripper
	UserAgent string
}

func NewHttpTransport

func NewHttpTransport(useragent string) *HttpTransport

func (*HttpTransport) RoundTrip

func (m *HttpTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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