http

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBodyRequest

func ReadBodyRequest(method, url string, body io.Reader, headers http.Header) ([]byte, error)

ReadBodyRequest ...

func Request

func Request(method, url string, body io.Reader, headers http.Header) (*http.Response, error)

Request ...

func RequestJSON

func RequestJSON(method, url string, input, output interface{}, headers http.Header) (*http.Response, error)

RequestJSON ...

Types

type C

type C struct {
	Client *http.Client
}

C ...

var Client C

Client ...

func (*C) New

func (c *C) New(client *http.Client)

New ...

Jump to

Keyboard shortcuts

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