lxhttpclient

package
v0.0.0-...-a9e7080 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 11 Imported by: 46

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultRetries = 5

Functions

func Delete

func Delete(url string, path string, headers map[string]string) (*http.Response, []byte, error)

func DeleteAsync

func DeleteAsync(url string, path string, headers map[string]string) (*http.Response, error)

func Get

func Get(url string, path string, headers map[string]string) (*http.Response, []byte, error)

func GetAsync

func GetAsync(url string, path string, headers map[string]string) (*http.Response, error)

func GetWithUnmarshal

func GetWithUnmarshal(url string, path string, headers map[string]string, jsonObject interface{}) (*http.Response, []byte, error)

func Post

func Post(url string, path string, headers map[string]string, message interface{}) (*http.Response, []byte, error)

func PostAsync

func PostAsync(url string, path string, headers map[string]string, message interface{}) (*http.Response, error)

func PostAsyncFile

func PostAsyncFile(url, path, fileKey, pathToFile string) (*http.Response, error)

func PostFile

func PostFile(url, path, fileKey, pathToFile string) (*http.Response, []byte, error)

func PostWithUnmarshal

func PostWithUnmarshal(url string, path string, headers map[string]string, message, jsonObject interface{}) (*http.Response, []byte, error)

func UseBasicAuth

func UseBasicAuth(username, password string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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