-
Notifications
You must be signed in to change notification settings - Fork 54
/
requester.go
40 lines (31 loc) · 864 Bytes
/
requester.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* @Author: seekwe
* @Date: 2019-05-30 12:43:26
* @Last Modified by: seekwe
* @Last Modified time: 2019-05-30 12:46:39
*/
package zhttp
func Get(url string, v ...interface{}) (*Res, error) {
return std.Get(url, v...)
}
func Post(url string, v ...interface{}) (*Res, error) {
return std.Post(url, v...)
}
func Put(url string, v ...interface{}) (*Res, error) {
return std.Put(url, v...)
}
func Head(url string, v ...interface{}) (*Res, error) {
return std.Head(url, v...)
}
func Options(url string, v ...interface{}) (*Res, error) {
return std.Options(url, v...)
}
func Delete(url string, v ...interface{}) (*Res, error) {
return std.Delete(url, v...)
}
func Patch(url string, v ...interface{}) (*Res, error) {
return std.Patch(url, v...)
}
func Do(method, url string, v ...interface{}) (*Res, error) {
return std.Do(method, url, v...)
}