friendev EtherDune TCP/IP library
Macros
HTTPServer class configuration

HTTPServer class configuration section. More...

Macros

#define HTTP_SERVER_HEADER_NAME_MAX_LENGTH   20
 max buffer to hold a header name, e.g. More...
 
#define HTTP_SERVER_HEADER_VALUE_MAX_LENGTH   20
 max buffer to hold a header value, e.g. More...
 
#define HTTP_SERVER_QUERY_STRING_MAX_LENGTH   41
 max buffer to hold the entire query string, e.g. More...
 

Detailed Description

HTTPServer class configuration section.

Defines buffer space dedicated to temporarily hold queryString and one header name/value pair while the request is being received. The buffer space for header name/value is shared with queryString, therefore it is recommended that the sum of both HTTP_SERVER_HEADER_NAME_MAX_LENGTH and HTTP_SERVER_HEADER_VALUE_MAX_LENGTH + 1 equals HTTP_SERVER_QUERY_STRING_MAX_LENGTH

Macro Definition Documentation

#define HTTP_SERVER_HEADER_NAME_MAX_LENGTH   20

max buffer to hold a header name, e.g.

"Content-Type"

Definition at line 240 of file config.h.

#define HTTP_SERVER_HEADER_VALUE_MAX_LENGTH   20

max buffer to hold a header value, e.g.

"text/html"

Definition at line 241 of file config.h.

#define HTTP_SERVER_QUERY_STRING_MAX_LENGTH   41

max buffer to hold the entire query string, e.g.

"/digitalRead?pin=14"

Definition at line 242 of file config.h.