MCPcopy
hub / github.com/ampproject/amphtml / withdraw

Method withdraw

testing/helpers/service.js:200–205  ·  view source on GitHub ↗

* Returns a Promise that resolves when the request of given ID is deposited. * The returned promise resolves to an JsonObject contains the request info: * { * url: string * headers: JsonObject * body: string * } * @param {number|string|undefined} requestId * @returns {P

(requestId)

Source from the content-addressed store, hash-verified

198 * @returns {Promise<JsonObject>}
199 */
200 static withdraw(requestId) {
201 const url = `${REQUEST_URL}/withdraw/${requestId}/`;
202 return RequestBank.fetch_(url, `withdraw(${requestId ?? ''})`).then((res) =>
203 res.json()
204 );
205 }
206
207 static tearDown() {
208 const url = `${REQUEST_URL}/teardown/`;

Calls 3

thenMethod · 0.45
fetch_Method · 0.45
jsonMethod · 0.45

Tested by

no test coverage detected