httpd_req_new() function
Initiates the processing of HTTP request Receives incoming TCP packet on a socket, then parses the packet as HTTP request and fills httpd_req_t data structure with the extracted URI, headers are ready to be fetched from scratch buffer and calling http_recv() after this reads the body of the request.
Arguments
sd
Pointer to socket which is needed for receiving TCP packets.
Return value
- ESP_OK : if request packet is valid - ESP_FAIL : otherwise