MCPcopy Create free account
hub / github.com/auth0/auth0-cli / HTTPClientAPI

Interface HTTPClientAPI

internal/auth0/http_client.go:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type HTTPClientAPI interface {
11 // NewRequest returns a new HTTP request.
12 // If the payload is not nil it will be encoded as JSON.
13 NewRequest(ctx context.Context, method, uri string, payload interface{}, options ...management.RequestOption) (*http.Request, error)
14
15 // Do triggers an HTTP request and returns an HTTP response,
16 // handling any context cancellations or timeouts.
17 Do(req *http.Request) (*http.Response, error)
18
19 // Request combines NewRequest and Do, encoding the payload as JSON and
20 // returning an error for any non-2xx response.
21 Request(ctx context.Context, method, uri string, payload interface{}, options ...management.RequestOption) error
22
23 // URI builds a fully-qualified Management API URL from the given path segments.
24 URI(path ...string) string
25}

Callers 14

FetchUserInfoFunction · 0.80
apiCmdRunFunction · 0.80
sendEventMethod · 0.80
DownloadMethod · 0.80
GetQuickstartsFunction · 0.80
GetDeviceCodeFunction · 0.80
FetchUserInfoFunction · 0.80
apiCmdRunFunction · 0.80
TestFetchTemplateDataFunction · 0.80
subscribeEventStreamCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected