MCPcopy
hub / github.com/triggerdotdev/trigger.dev / asResponse

Method asResponse

packages/core/src/v3/apiClient/core.ts:556–558  ·  view source on GitHub ↗

* Gets the raw `Response` instance instead of parsing the response * data. * * If you want to parse the response body but still get the `Response` * instance, you can use withResponse().

()

Source from the content-addressed store, hash-verified

554 * instance, you can use {@link withResponse()}.
555 */
556 asResponse(): Promise<Response> {
557 return this.responsePromise.then((p) => p.response);
558 }
559
560 /**
561 * Gets the parsed response data and the raw `Response` instance.

Callers 1

withResponseMethod · 0.95

Calls 1

thenMethod · 0.80

Tested by

no test coverage detected