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

Method ReverseProxy

coderd/workspaceapps/proxy.go:74–74  ·  view source on GitHub ↗

ReverseProxy returns an httputil.ReverseProxy for proxying HTTP requests to the specified agent.

(targetURL, dashboardURL *url.URL, agentID uuid.UUID, app appurl.ApplicationURL, wildcardHost string)

Source from the content-addressed store, hash-verified

72 // ReverseProxy returns an httputil.ReverseProxy for proxying HTTP requests
73 // to the specified agent.
74 ReverseProxy(targetURL, dashboardURL *url.URL, agentID uuid.UUID, app appurl.ApplicationURL, wildcardHost string) *httputil.ReverseProxy
75
76 // AgentConn returns a new connection to the specified agent.
77 AgentConn(ctx context.Context, agentID uuid.UUID) (_ workspacesdk.AgentConn, release func(), _ error)

Implementers 2

fakeAgentProvidercoderd/workspaceagents_internal_test.g
ServerTailnetcoderd/tailnet.go

Calls

no outgoing calls