requests

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderMime          = "Content-Type"
	HeaderXFRDate       = "X-FR-Date"
	HeaderDate          = "Date"
	HeaderXFRClientID   = "X-FR-ClientID"
	HeaderAuthorization = "Authorization"
	HeaderXFRPhumacAlgo = "X-FR-Phumac-Algo"
	HeaderKeyContentMD5 = "Content-MD5"
)
View Source
const (
	MimeJson    = "application/json"
	MimeTextXML = "text/xml"
	MimeXML     = "application/xml"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

type HttpClient interface {
	Call(ctx context.Context, logger logrus.FieldLogger, method string, url string, header map[string]string, body interface{}, dest interface{}, requestInterceptors ...Interceptor) error
}

func NewClient

func NewClient() HttpClient

type Interceptor

type Interceptor func(r *http.Request) error

Jump to

Keyboard shortcuts

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