-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add response time procesing header #845
Conversation
docs/usermanual.md
Outdated
@@ -521,6 +524,11 @@ Content-type: application/json | |||
} | |||
``` | |||
|
|||
#### Time processing | |||
|
|||
HTTP bindig is returning in a HTTP header named `X-Processing-Time` processing time expended by current HTTP measure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In which unit is provide (seconds, etc.)? Are decimal allowed?
Including an example would be great.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated doc: 4e05442
Co-authored-by: Fermín Galán Márquez <fgalan@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Twin PR telefonicaid/iotagent-ul#685 |
telefonicaid/iotagent-node-lib#1650
Usage:
$ curl -i -X POST 'http://localhost:7897/iot/json?i=disp1&k=APIKEY1' -d '{ "level": "33"}' -H 'content-type: application/json'
HTTP/1.1 200 OK
X-Powered-By: Express
X-Processing-Time: 38
Content-Type: application/json; charset=utf-8
Content-Length: 2
ETag: W/"2-vyGp6PvFo4RvsFtPoIWeCReyIC8"
Date: Thu, 26 Sep 2024 11:28:57 GMT
Connection: keep-alive
Keep-Alive: timeout=5