httpc

package
v0.0.0-...-17c0c07 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHttp

func DoHttp(method, url, _deprecated, user, apikey, contentType string, requestReader io.Reader, requestLength int64, isVerbose bool) (*http.Response, error)

func GetContentType

func GetContentType(text string) string

func ParseMap

func ParseMap(resp *http.Response, isVerbose bool) (map[string]interface{}, error)

func ParseSlice

func ParseSlice(resp *http.Response, isVerbose bool) ([]map[string]interface{}, error)

func UploadFile

func UploadFile(method, url, subject, user, apikey, fullPath, relativePath, contentType string, isVerbose bool) (map[string]interface{}, error)

Types

type HttpError

type HttpError struct {
	StatusCode int
	// contains filtered or unexported fields
}

func (HttpError) Error

func (e HttpError) Error() string

Jump to

Keyboard shortcuts

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