MCPcopy Create free account
hub / github.com/imroc/req / Patch

Method Patch

client.go:111–118  ·  view source on GitHub ↗

Patch create a new PATCH request.

(url ...string)

Source from the content-addressed store, hash-verified

109
110// Patch create a new PATCH request.
111func (c *Client) Patch(url ...string) *Request {
112 r := c.R()
113 if len(url) > 0 {
114 r.RawURL = url[0]
115 }
116 r.Method = http.MethodPatch
117 return r
118}
119
120// Delete create a new DELETE request.
121func (c *Client) Delete(url ...string) *Request {

Callers 2

PatchFunction · 0.45
TestSendMethodsFunction · 0.45

Calls 1

RMethod · 0.95

Tested by 1

TestSendMethodsFunction · 0.36