request

package
v0.0.0-...-9bd63dd Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(rawURL string, params map[string]string, headers map[string]string) (string, error)

func GetByte

func GetByte(method, url string, body io.Reader, headers map[string]string) ([]byte, error)

func GetReader

func GetReader(data map[string]string, contentType string) io.Reader

func Post

func Post(url, contentType string, data map[string]string, headers map[string]string) (string, error)

func PostForm

func PostForm(url string, data map[string]string, headers map[string]string) (string, error)

func PostJson

func PostJson(url string, data map[string]string, headers map[string]string) (string, error)

func Request

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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