httpJson

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(url string, header http.Header) (map[string]interface{}, error)

Send an get request and get response as serialized json map[string]interface{}

func Get

func Get(url string, header http.Header) (map[string]interface{}, error)

Send an get request and get response as serialized json map[string]interface{}

func Post

func Post(url string, header http.Header, body string) (map[string]interface{}, error)

Send an Ppo request and get response as serialized json map[string]interface{}

func Put

func Put(url string, header http.Header, body string) (map[string]interface{}, error)

Send an get request and get response as serialized json map[string]interface{}

func SendRequest

func SendRequest(url string, method string, header http.Header, body string) (map[string]interface{}, error)

Send an http request and get response as serialized json map[string]interface{}

func SendRequestRaw

func SendRequestRaw(url string, method string, header http.Header, body string) ([]byte, error)

Send an http request and get response as byte[]

Types

This section is empty.

Jump to

Keyboard shortcuts

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