Documentation ¶
Index ¶
- func AddCookie(cookie *http.Cookie) request.RequestOption
- func AddFormField(key, value string) request.RequestOption
- func AddParam(key, value string) request.RequestOption
- func Header(key, value string) request.RequestOption
- func Headers(header http.Header) request.RequestOption
- func Method(method string) request.RequestOption
- func SetBody(body []byte) request.RequestOption
- func SetCookies(cookies []*http.Cookie) request.RequestOption
- func SetFile(fieldname, source string) request.RequestOption
- func SetFileBody(fieldname, filename string, body any) request.RequestOption
- func SetForm(form url.Values) request.RequestOption
- func SetFormField(key, value string) request.RequestOption
- func SetJSON(entity any) request.RequestOption
- func SetParam(key, value string) request.RequestOption
- func SetParams(params url.Values) request.RequestOption
- func Trace() request.RequestOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFormField ¶
func AddFormField(key, value string) request.RequestOption
AddFormField adds a form field
func AddParam ¶
func AddParam(key, value string) request.RequestOption
AddParam adds a query parameter
func Method ¶
func Method(method string) request.RequestOption
Method sets the HTTP method of the request
func SetCookies ¶
func SetCookies(cookies []*http.Cookie) request.RequestOption
SetCookies sets the cookies
func SetFile ¶
func SetFile(fieldname, source string) request.RequestOption
SetFile sets a file field
func SetFileBody ¶
func SetFileBody(fieldname, filename string, body any) request.RequestOption
SetFileBody sets a file field with body
func SetFormField ¶
func SetFormField(key, value string) request.RequestOption
SetFormField sets a form field
func SetParam ¶
func SetParam(key, value string) request.RequestOption
SetParam sets the query parameter
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.