-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIClient.go
More file actions
20 lines (18 loc) · 1.13 KB
/
IClient.go
File metadata and controls
20 lines (18 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package httpclient
import (
"bytes"
"github.com/poolqa/httpclient/common"
)
type IClient interface {
ExecuteWithReturnMore(method string, url string, headers map[string]string, body *bytes.Buffer, config *common.ReturnConfig) (int, *Response, error)
Execute(method string, url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Get(url string, headers map[string]string) (int, *Response, error)
Post(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Put(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Delete(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Options(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Patch(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Head(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Connect(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
Trace(url string, headers map[string]string, body *bytes.Buffer) (int, *Response, error)
}