MCPcopy Index your code
hub / github.com/code-dot-org/code-dot-org / deleteRequest

Function deleteRequest

apps/src/util/HttpClient.ts:141–153  ·  view source on GitHub ↗
(
  endpoint: string,
  useAuthenticityToken = false,
  headers: Record<string, string> = {}
)

Source from the content-addressed store, hash-verified

139}
140
141async function deleteRequest(
142 endpoint: string,
143 useAuthenticityToken = false,
144 headers: Record<string, string> = {}
145): Promise<Response> {
146 return sendRequest(
147 'DELETE',
148 endpoint,
149 undefined,
150 useAuthenticityToken,
151 headers
152 );
153}
154
155export default {
156 delete: deleteRequest,

Callers

nothing calls this directly

Calls 1

sendRequestFunction · 0.85

Tested by

no test coverage detected