webreq

package
v0.0.0-...-9648343 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultHeaders map[string]string

Functions

func JSON

func JSON(ctx context.Context, url string, headers map[string]string, req, resp interface{}, limit int64) error

func MsgPack

func MsgPack(ctx context.Context, url string, headers map[string]string, req, resp interface{}, limit int64) error

func Raw

func Raw(ctx context.Context, url string, headers map[string]string, limit int64) ([]byte, error)

Types

type HTTPError

type HTTPError struct {
	StatusCode int
	Body       string
}

func (HTTPError) Error

func (he HTTPError) Error() string

Jump to

Keyboard shortcuts

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