client

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Content

type Content struct {
	Status  int
	Header  http.Header
	Content []byte
}

type Fetcher

type Fetcher struct {
	HttpClient  *http.Client
	RewriteHost string
}
var BaselineFetcher *Fetcher
var TestFetcher *Fetcher

func NewHttpFetcher

func NewHttpFetcher(rHost string) *Fetcher

func (*Fetcher) Do

func (f *Fetcher) Do(r *http.Request) (int, http.Header, []byte, error)

Jump to

Keyboard shortcuts

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