MCPcopy
hub / github.com/gofiber/fiber / checkClient

Method checkClient

client/request.go:626–630  ·  view source on GitHub ↗

checkClient ensures that a Client is set. If none is set, it defaults to the package default client via C().

()

Source from the content-addressed store, hash-verified

624
625// checkClient ensures that a Client is set. If none is set, it defaults to the package default client via C().
626func (r *Request) checkClient() {
627 if r.client == nil {
628 r.SetClient(C())
629 }
630}
631
632// Get sends a GET request to the given URL.
633func (r *Request) Get(url string) (*Response, error) {

Callers 1

SendMethod · 0.95

Calls 2

SetClientMethod · 0.95
CFunction · 0.70

Tested by

no test coverage detected