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

Method Options

client.go:151–158  ·  view source on GitHub ↗

Options create a new OPTIONS request.

(url ...string)

Source from the content-addressed store, hash-verified

149
150// Options create a new OPTIONS request.
151func (c *Client) Options(url ...string) *Request {
152 r := c.R()
153 if len(url) > 0 {
154 r.RawURL = url[0]
155 }
156 r.Method = http.MethodOptions
157 return r
158}
159
160// GetTransport return the underlying transport.
161func (c *Client) GetTransport() *Transport {

Callers 2

OptionsFunction · 0.45
TestSendMethodsFunction · 0.45

Calls 1

RMethod · 0.95

Tested by 1

TestSendMethodsFunction · 0.36