<commit_before>#ifndef HTTPD_H
#define HTTPD_H

#include <stdint.h>
#include <stdbool.h>

#include "esp.h"

/**
 * Design notes:
 *  - The platform code owns the memory management of connections
 *  - The platform embeds a HttpdConnData into its own structure, this enables
 *    the platform code, through the use of the container_of approach, to
 *    find its connection structure when given a HttpdConnData*
 */


#define HTTPDVER "0.5"

//Max length of request head. This is statically allocated for each connection.<commit_msg>httpd.h - Add include for stddef.h for the definition of offsetof()<commit_after>#ifndef HTTPD_H
#define HTTPD_H

#include <stdint.h>
#include <stdbool.h>
#include <stddef.h>

#include "esp.h"

/**
 * Design notes:
 *  - The platform code owns the memory management of connections
 *  - The platform embeds a HttpdConnData into its own structure, this enables
 *    the platform code, through the use of the container_of approach, to
 *    find its connection structure when given a HttpdConnData*
 */


#define HTTPDVER "0.5"

//Max length of request head. This is statically allocated for each connection.
{'fraction_non_alphanumeric': 0.08157894736842106, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 3.982532751091703, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5366452', 'n_tokens_mistral': 341, 'n_tokens_neox': 344, 'n_words': 142}