Skip to content

Looking for a way to dump the request information (headers, etc) during an HTTPD request to the output response body (IDFGH-15185) #15857

Open
@codewitch-honey-crisis

Description

@codewitch-honey-crisis

Is your feature request related to a problem?

I've been building up an ASP like HTTP server framework for ESP32s. I've been relying on the HTTPD facilities in the ESP-IDF instead of rolling my own.
However, I've hit a hard wall.
I need the request headers. All of them.
In fact, I need the entire request, not something I need to play go-fish with.

How do I enumerate every request header from httpd_req_t?

Describe the solution you'd like.

I just want a way to get the entire HTTP request packet, whether i have to parse it myself, or whether through the HTTPD facilities. If there's a way to do it, the documentation isn't saying.

Describe alternatives you've considered.

I've considered eliminating asynchronicity in my responses, and just forwarding requests from headers to httpd_req_t, but this kills performance, and just forwards the same problem to my end user.

Additional context.

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions