Documentation ¶
Index ¶
- Variables
- func Call(method, url string, body io.Reader, funcClient func() *http.Client, ...) error
- func CallWithContext(ctx context.Context, method, url string, body io.Reader, ...) error
- func Http(method, url string, body io.Reader, funcHeader func(header http.Header), ...) error
- func HttpWithContext(ctx context.Context, method, url string, body io.Reader, ...) error
- func JSON(url string, data interface{}, result interface{}, ...) error
- func POST(url string, data interface{}, funcHeader func(header http.Header), ...) error
- func PostForm(url string, data url.Values, funcHeader func(header http.Header), ...) error
- func Upload(url string, params map[string]string, fileName, path string, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var HttpClient = &http.Client{ Timeout: 10 * time.Minute, }
Functions ¶
func CallWithContext ¶
func HttpWithContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.