http

package
Version: v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2021 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 ...

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL