Documentation
¶
Index ¶
- Constants
- Variables
- func HttpGet(url string, params url.Values, headers http.Header, timeout time.Duration) ([]byte, error)
- func HttpPost(dest string, body io.Reader, params url.Values, headers http.Header, ...) ([]byte, error)
- func HttpRequest(opt Options) ([]byte, error)
- func JsonPost(addr string, req interface{}, resp interface{}) (err error)
- type Options
Constants ¶
View Source
const (
ContentTypeJson = `application/json`
)
Variables ¶
View Source
var DefaultTimeout = time.Second * 5
Functions ¶
func HttpRequest ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.