MCPcopy Create free account
hub / github.com/BryanMwangi/pine / SetMethod

Method SetMethod

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

Use this to set the method of the request For example: request.SetMethod("GET")

(method string)

Source from the content-addressed store, hash-verified

113// For example:
114// request.SetMethod("GET")
115func (r *Request) SetMethod(method string) *Request {
116 r.method = method
117 return r
118}
119
120// Use this method to skip TLS verification
121// This can be useful if the api you are calling has outdated TLS certificates

Callers 5

TestRequest_SetMethodFunction · 0.80
TestClient_SendRequestFunction · 0.80
TestClient_ReadResponseFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestRequest_SetMethodFunction · 0.64
TestClient_SendRequestFunction · 0.64
TestClient_ReadResponseFunction · 0.64