ESP-IDF + 0/4 examples
SourceVu will show references to httpd_resp_set_hdr() from the following samples and libraries:
 
Symbols
loading...
Files
loading...
SummarySyntaxArgumentsRelatedExamplesReferencesCall TreeData Use

Return value

- ESP_OK : On successfully appending new header - ESP_ERR_INVALID_ARG : Null arguments - ESP_ERR_HTTPD_RESP_HDR : Total additional headers exceed max allowed - ESP_ERR_HTTPD_INVALID_REQ : Invalid request pointer

Notes

- This API is supposed to be called only from the context of a URI handler where httpd_req_t* request pointer is valid. - The header isn't sent out until any of the send APIs is executed. - The maximum allowed number of additional headers is limited to value of max_resp_headers in config structure. - Make sure that the lifetime of the field value strings are valid till send function is called.

References

from 0/4 examples