rester

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const HeadersContextKey = "headers"

Variables

This section is empty.

Functions

func GetBasicAuthHeader

func GetBasicAuthHeader(username, password string) string

Types

type Client

type Client interface {
	Get(ctx context.Context, route string, params url.Values, output interface{}) error
	Head(ctx context.Context, route string, params url.Values, output map[string][]string) error
	Post(ctx context.Context, route string, params url.Values, input interface{}, output interface{}) error
	Put(ctx context.Context, route string, params url.Values, input interface{}, output interface{}) error
	Patch(ctx context.Context, route string, input interface{}) error
	Delete(ctx context.Context, route string, params url.Values) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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