(path string, query neturl.Values)
| 1323 | } |
| 1324 | |
| 1325 | func 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. |
| 1334 | func (c *agentConn) apiRequest(ctx context.Context, method, path string, body interface{}) (*http.Response, error) { |