server

package
v0.0.0-...-92b9631 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorNilURL the url is missing
	ErrorNilURL = errors.New("The provided URL can't be empty")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Get(url string) (*http.Response, error)
	Post(url string, body io.Reader) (*http.Response, error)
	Do(*http.Request) (*http.Response, error)
	SetRequest(method, url string, body io.Reader) (*http.Request, error)
}

Client is a client interface that enables to write custom behaviours to servers

func New

func New(config ...*flag) Client

New Creates a new Client

Jump to

Keyboard shortcuts

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