Documentation ¶
Index ¶
- Constants
- func DecodeBody(src string) (dst string)
- func DeleteHttp(url string) (res []byte, err error)
- func GetHttp(url string) (result []byte, err error)
- func MapToUrl(params map[string]interface{}) (s string)
- func PostHttp(url string, param interface{}) (result []byte, err error)
- func PutHttp(url string, param interface{}) (result []byte, err error)
- func RequestHttp(method string, host string, header map[string]string, param interface{}) (result string, err error)
Constants ¶
View Source
const ( Post = "POST" Get = "GET" Put = "PUT" Delete = "DELETE" PrefixHttp = "http://" ContentTypeKey = "Content-Type" ContentTypeJson = "application/json" ContentTypeGBK = "application/javascript;charset=GBK" )
Variables ¶
This section is empty.
Functions ¶
func DeleteHttp ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.