There are two steps to using an HttpEndpoint:

  1. Use client.defineHttpEndpoint() to create an HttpEndpoint.
  2. Use onRequest() to create an HttpTrigger. This method is shown below.

You can see a complete example on this page.

Creating an HttpEndpoint

Use client.defineHttpEndpoint() to create an HttpEndpoint.

Methods

onRequest()

You don’t need to provide any options to onRequest(). But you can provide a filter – if an incoming request matches the filter then the Job will run.

options
object
filter
RequestFilter

Only Requests that match this filter will cause the corresponding function to run. For example, you can use this to only allow GET Requests.