Add on_response Trigger lambda example (#3987)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Andrew J.Swan 2024-07-17 13:35:29 +03:00 committed by GitHub
parent 8b340ea071
commit fde5bdd659
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -176,6 +176,8 @@ The following variables are available for use in :ref:`lambdas <config-lambda>`:
args:
- response->status_code
- response->duration_ms
- lambda: |-
ESP_LOGD(TAG, "Response status: %d, Duration: %u ms", response->status_code, response->duration_ms);
.. _http_request-examples: