From dd7899e40142d3c5d4da97e041b94fd6505a0dd5 Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Mon, 3 Jun 2024 11:00:55 +0200 Subject: [PATCH] Change format of delay for invocations --- docs/invoke/http.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/invoke/http.mdx b/docs/invoke/http.mdx index ff2bd8f8..18143803 100644 --- a/docs/invoke/http.mdx +++ b/docs/invoke/http.mdx @@ -66,13 +66,13 @@ You can use this identifier [to cancel](/operate/invocation#cancelling-invocatio ## Sending a delayed message over HTTP -You can **delay the message** by adding a delay request parameter in ISO8601 notation or in seconds: +You can **delay the message** by adding a delay request parameter in ISO8601 notation or using [humantime format](https://docs.rs/humantime/latest/humantime/): - ```shell seconds + ```shell humantime # focus[40:56] - curl localhost:8080/MyService/myHandler/send?delaySec=10 \ + curl localhost:8080/MyService/myHandler/send?delay=10s \ -H 'content-type: application/json' \ -d '{"name": "Mary", "age": 25}' ```