gohttp

package module
v0.0.0-...-05c9766 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Response

type Response struct {
	Status        string
	StatusCode    int
	Header        http.Header
	Body          []byte
	ContentLength int64
}

func Get

func Get(url string, params map[string]interface{}) (httpResponse Response, err error)

func GetJsonHeader

func GetJsonHeader(url string, params map[string]interface{}, headers goheader.Headers) (httpResponse Response, err error)

func PostForm

func PostForm(targetUrl string, params map[string]interface{}) (httpResponse Response, err error)

func PostJson

func PostJson(targetUrl string, paramsStr []byte) (httpResponse Response, err error)

func PostJsonHeader

func PostJsonHeader(targetUrl string, paramsStr []byte, headers goheader.Headers) (httpResponse Response, err error)

Jump to

Keyboard shortcuts

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