MCPcopy
hub / github.com/continuedev/continue / post

Function post

extensions/cli/src/util/apiClient.ts:137–147  ·  view source on GitHub ↗
(
  endpoint: string,
  body?: Record<string, unknown> | string,
  headers?: Record<string, string>,
)

Source from the content-addressed store, hash-verified

135 * Convenience function for POST requests
136 */
137export async function post<T = any>(
138 endpoint: string,
139 body?: Record<string, unknown> | string,
140 headers?: Record<string, string>,
141): Promise<ApiResponse<T>> {
142 return makeAuthenticatedRequest<T>(endpoint, {
143 method: "POST",
144 body,
145 headers,
146 });
147}
148
149/**
150 * Convenience function for PUT requests

Callers 7

status.tsFile · 0.85
reportFailure.tsFile · 0.85
acceptChecksFunction · 0.85
rejectChecksFunction · 0.85
postAgentMetadataFunction · 0.85
apiClient.test.tsFile · 0.85

Calls 1

makeAuthenticatedRequestFunction · 0.85

Tested by

no test coverage detected