MCPcopy Create free account
hub / github.com/rabbitstack/fibratus / WithURI

Function WithURI

pkg/util/rest/rest.go:62–66  ·  view source on GitHub ↗

WithURI initializes the URI where the request is sent.

(uri string)

Source from the content-addressed store, hash-verified

60
61// WithURI initializes the URI where the request is sent.
62func WithURI(uri string) Option {
63 return func(o *opts) {
64 o.uri = uri
65 }
66}
67
68// WithContentType sets the content type header for the HTTP requests.
69func WithContentType(contentType string) Option {

Callers 4

statsFunction · 0.92
printConfigFunction · 0.92
TestGetFunction · 0.85
TestGetPipeFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestGetFunction · 0.68
TestGetPipeFunction · 0.68