Publish to a URL with a 3 second delay and headers/body
Publish to a topic with a 3 second delay and headers/body
You can make a topic on the QStash console or using the topics APIPublish a method with a callback URL
Callbacks are useful for long running functions. Here, QStash will return the response of the publish request to the callback URL. We also change themethod
to GET
in this use case so QStash will make a GET
request to the url
. The default
is POST
.