httpclient

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Codec() *codec.Codec
	Request(payload RequestPayload) (*http.Response, error)
	RequestJSON(payload RequestPayload, respBody interface{}) error
}

func New

func New(codec *codec.Codec, endpoint string) Client

type RequestPayload

type RequestPayload struct {
	Context context.Context
	Method  string
	Path    string
	Query   map[string]string
	Body    io.Reader
}

Jump to

Keyboard shortcuts

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