Documentation ¶
Index ¶
- Constants
- func DoRestfulRequest(method, url string, body io.Reader, header map[string]string, ...) (respBytes []byte, err error)
- func Get(url string, header H, bootstrap []string, timeout time.Duration) (respBytes []byte, err error)
- func Post(url string, body io.Reader, header H, bootstrap []string, ...) (respBytes []byte, err error)
- func PostJson(url string, data interface{}, bootstrap []string, timeout time.Duration) (respBytes []byte, err error)
- type H
Constants ¶
View Source
const ( MIMEApplicationJSON = "application/json" MIMEApplicationJSONCharsetUTF8 = MIMEApplicationJSON + "; " + charsetUTF8 MIMETextXML = "text/xml" MIMETextXMLCharsetUTF8 = MIMETextXML + "; " + charsetUTF8 MIMETextHTML = "text/html" MIMETextHTMLCharsetUTF8 = MIMETextHTML + "; " + charsetUTF8 MIMETextPlain = "text/plain" MIMETextPlainCharsetUTF8 = MIMETextPlain + "; " + charsetUTF8 MIMEMultipartForm = "multipart/form-data" MIMEOctetStream = "application/octet-stream" HeaderContentType = "Content-Type" )
Variables ¶
This section is empty.
Functions ¶
func DoRestfulRequest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.