-
Notifications
You must be signed in to change notification settings - Fork 52
/
requester.go
45 lines (34 loc) · 982 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
41
42
43
44
45
package zhttp
func DisableChunke(enable ...bool) {
std.DisableChunke(enable...)
}
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 Connect(url string, v ...interface{}) (*Res, error) {
return std.Connect(url, v...)
}
func Trace(url string, v ...interface{}) (*Res, error) {
return std.Trace(url, v...)
}
func Do(method, url string, v ...interface{}) (*Res, error) {
return std.Do(method, url, v...)
}