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

Function agentAPIPath

codersdk/workspacesdk/agentconn.go:1325–1331  ·  view source on GitHub ↗
(path string, query neturl.Values)

Source from the content-addressed store, hash-verified

1323}
1324
1325func agentAPIPath(path string, query neturl.Values) string {
1326 if len(query) == 0 {
1327 return path
1328 }
1329
1330 return path + "?" + query.Encode()
1331}
1332
1333// apiRequest makes a request to the workspace agent's HTTP API server.
1334func (c *agentConn) apiRequest(ctx context.Context, method, path string, body interface{}) (*http.Response, error) {

Callers 6

LSMethod · 0.85
ResolvePathMethod · 0.85
ReadFileLinesMethod · 0.85
ReadFileMethod · 0.85
WriteFileMethod · 0.85
TestAgentAPIPathFunction · 0.85

Calls 1

EncodeMethod · 0.80

Tested by 1

TestAgentAPIPathFunction · 0.68