MCPcopy Index your code
hub / github.com/coder/coder / AsRequestOption

Method AsRequestOption

codersdk/credentials.go:13–13  ·  view source on GitHub ↗

AsRequestOption returns a request option that attaches the session token to an HTTP request.

()

Source from the content-addressed store, hash-verified

11type SessionTokenProvider interface {
12 // AsRequestOption returns a request option that attaches the session token to an HTTP request.
13 AsRequestOption() RequestOption
14 // SetDialOption sets the session token on a websocket request via DialOptions
15 SetDialOption(options *websocket.DialOptions)
16 // GetSessionToken returns the session token as a string.

Callers 2

ExternalLoginMethod · 0.65
RequestMethod · 0.65

Implementers 4

FixedSessionTokenProvidercodersdk/credentials.go
InstanceIdentitySessionTokenProvidercodersdk/agentsdk/agentsdk.go
cookieOnlySessionTokenProviderenterprise/coderd/exp_chats_test.go
Clientagent/agenttest/client.go

Calls

no outgoing calls

Tested by

no test coverage detected