MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / onRequest

Method onRequest

packages/trigger-sdk/src/httpEndpoint.ts:35–42  ·  view source on GitHub ↗
(options?: RequestOptions)

Source from the content-addressed store, hash-verified

33 }
34
35 onRequest(options?: RequestOptions): HttpTrigger<EventSpecification<Request>> {
36 return new HttpTrigger({
37 endpointId: this.id,
38 event: this.options.event,
39 filter: options?.filter,
40 verify: this.options.verify,
41 });
42 }
43
44 // @internal
45 async handleRequest(request: Request): Promise<Response | undefined> {

Callers 1

httpTrigger.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected