MCPcopy
hub / github.com/oauth2-proxy/oauth2-proxy / New

Function New

pkg/requests/builder.go:33–38  ·  view source on GitHub ↗

New provides a new Builder for the given endpoint.

(endpoint string)

Source from the content-addressed store, hash-verified

31
32// New provides a new Builder for the given endpoint.
33func New(endpoint string) Builder {
34 return &builder{
35 endpoint: endpoint,
36 method: "GET",
37 }
38}
39
40// WithContext adds a context to the request.
41// If no context is provided, context.Background() is used instead.

Callers 15

EnrichSessionMethod · 0.92
EnrichSessionMethod · 0.92
GetEmailAddressMethod · 0.92
GetEmailAddressMethod · 0.92
EnrichSessionMethod · 0.92
hasRepoAccessMethod · 0.92
hasUserMethod · 0.92
isCollaboratorMethod · 0.92
getEmailMethod · 0.92
getUserMethod · 0.92
getOrgsMethod · 0.92
getTeamsMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected