MCPcopy Index your code
hub / github.com/imroc/req / Post

Method Post

client.go:101–108  ·  view source on GitHub ↗

Post create a new POST request.

(url ...string)

Source from the content-addressed store, hash-verified

99
100// Post create a new POST request.
101func (c *Client) Post(url ...string) *Request {
102 r := c.R()
103 if len(url) > 0 {
104 r.RawURL = url[0]
105 }
106 r.Method = http.MethodPost
107 return r
108}
109
110// Patch create a new PATCH request.
111func (c *Client) Patch(url ...string) *Request {

Callers 15

TestSetCommonFormDataFunction · 0.45
testEnableDumpAllFunction · 0.45
TestEnableDumpAllToFileFunction · 0.45
PostFunction · 0.45
TestSendMethodsFunction · 0.45
testEnableDumpFunction · 0.45
TestSetBodyMarshalFunction · 0.45
TestSetBodyFunction · 0.45
testFormFunction · 0.45

Calls 1

RMethod · 0.95

Tested by 15

TestSetCommonFormDataFunction · 0.36
testEnableDumpAllFunction · 0.36
TestEnableDumpAllToFileFunction · 0.36
TestSendMethodsFunction · 0.36
testEnableDumpFunction · 0.36
TestSetBodyMarshalFunction · 0.36
TestSetBodyFunction · 0.36
testFormFunction · 0.36