diff --git a/docs/concepts/invocations.mdx b/docs/concepts/invocations.mdx index b3cfc683..4ed51a51 100644 --- a/docs/concepts/invocations.mdx +++ b/docs/concepts/invocations.mdx @@ -207,11 +207,11 @@ Invocations get a unique identifier. This identifier is used to track the progre --- ```bash - curl localhost:8080/GreeterService/greet/send?delaySec=10 \ + curl localhost:8080/GreeterService/greet/send?delay=10s \ -H 'content-type: application/json' \ -d '"Hi"' - curl localhost:8080/GreetCounter/Mary/greet/send?delaySec=10 \ + curl localhost:8080/GreetCounter/Mary/greet/send?delay=10s \ -H 'content-type: application/json' \ -d '"Hi"' ``` 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}' ```