9#ifndef HTTP_RESPONSE_H_
10#define HTTP_RESPONSE_H_
17#define HTTP_RESPONSE_CONTENT_LENGTH_MAX_LENGTH 5
http_status_code_e
Enumeration of HTTP status codes string indexes.
http_content_types_e
Enumeration of HTTP content-types header values string indexes.
uint32_t http_response_get_bytes_left(http_response_s *res)
Returns the amount of bytes left to be processed.
http_response_s * http_response_new(void)
Creates a new HTTP response instance.
http_response_static_state
Whether the HTTP response conveys static data or not. This is very importnt as it will be used to all...
void http_response_prepare_dynamic(http_response_s *res, http_status_code_e status_code, http_content_types_e content_type, char *content)
Pre-formats response to HTTP response using provided response header parameters.
void http_response_free(http_response_s *res)
Safely frees an HTTP response instance.
@ HTTP_RESPONSE_IS_DYNAMIC
@ HTTP_RESPONSE_IS_STATIC
HTTP response structure object.