gohttp

package
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 10 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 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)

Jump to

Keyboard shortcuts

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