http

package
v0.0.0-...-4c7bb82 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, resBody interface{}, opts ...RequestOption) (*http.Response, error)

func Post

func Post(url string, reqBody interface{}, resBody interface{}, opts ...RequestOption) (*http.Response, error)

Types

type RequestOption

type RequestOption func(*http.Request) error

func WithAPIToken

func WithAPIToken(token string) RequestOption

func WithHeader

func WithHeader(key, value string) RequestOption

Jump to

Keyboard shortcuts

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