14#ifndef HTTP_REQUEST_H_
15#define HTTP_REQUEST_H_
19#include "http_response.h"
http_method_e
Enumeration of HTTP method string indexes.
http_version_e
Enumeration of HTTP versions string indexes.
void http_request_free(http_request_s *req)
Safely frees an HTTP request instance.
struct http_request http_request_s
HTTP request object.
http_request_s * http_request_new(router_fn router)
Creates a new HTTP request instance.
void(* router_fn)(http_request_s *req)
uint8_t http_request_parse(http_request_s *req, struct pbuf *p)
Extracts and parses HTTP method headers and content from received data and calls the router function ...
HTTP uri parameter object.
http_version_e http_version
HTTP response structure object.