-
Notifications
You must be signed in to change notification settings - Fork 0
/
http-impl.go
35 lines (28 loc) · 904 Bytes
/
http-impl.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
/*
* Copyright (c) 2024.
* Created by Andy Pangaribuan <https://github.com/apangaribuan>.
*
* This product is protected by copyright and distributed under
* licenses restricting copying, distribution and decompilation.
* All Rights Reserved.
*/
package http
import (
"github.com/andypangaribuan/gmod/clog"
"github.com/andypangaribuan/gmod/ice"
)
func (*stuHttp) Get(clog clog.Instance, url string) ice.HttpBuilder {
return newHttp(clog, url, "get")
}
func (*stuHttp) Post(clog clog.Instance, url string) ice.HttpBuilder {
return newHttp(clog, url, "post")
}
func (*stuHttp) Put(clog clog.Instance, url string) ice.HttpBuilder {
return newHttp(clog, url, "put")
}
func (*stuHttp) Patch(clog clog.Instance, url string) ice.HttpBuilder {
return newHttp(clog, url, "patch")
}
func (*stuHttp) Delete(clog clog.Instance, url string) ice.HttpBuilder {
return newHttp(clog, url, "delete")
}