The following functions and variables are designated as internal to the HTTP2 module.
Enumerations
|
Name |
Description |
![]() |
File type definitions | |
![]() |
Supported Commands and Server Response Codes | |
![]() |
Basic HTTP Connection State Machine |
Functions
|
Name |
Description |
![]() |
Parses the "Authorization:" header for a request and verifies the credentials. | |
![]() |
Parses the "Content-Length:" header for a request. | |
![]() |
Parses the "Cookie:" headers for a request and stores them as GET variables. | |
![]() |
Calls the appropriate header parser based on the index of the header that was read from the request. | |
![]() |
Writes a file byte-for-byte to the currently loaded TCP socket. | |
![]() |
Switches the currently loaded connection for the HTTP2 module. | |
![]() |
Saves a file uploaded via POST as the new MPFS image in EEPROM or external Flash. | |
![]() |
Performs any pending operations for the currently loaded HTTP connection. | |
![]() |
Reads to a buffer until a specified delimiter character. | |
![]() |
Serves up the next chunk of curHTTP's file, up to a) available TX FIFO space or b) the next callback index, whichever comes first. |
Macros
|
Name |
Description |
![]() |
Max lifetime (sec) of static responses as string | |
![]() |
Define the maximum data length for reading cookie and GET/POST arguments (bytes) | |
![]() |
Set to length of longest string above | |
![]() |
Define the minimum number of bytes free in the TX FIFO before executing callbacks | |
![]() |
Define the listening port for the HTTP server | |
![]() |
Max time (sec) to await more data before timing out and disconnecting the socket | |
![]() |
Define the listening port for the HTTPS server (if STACK_USE_SSL_SERVER is enabled) | |
![]() |
Access the current state machine | |
![]() |
Macro indicating how much RAM to allocate on an ethernet controller to store HTTP state data. |
Module
Structures
|
Name |
Description |
![]() |
HTTP Connection Struct Stores partial state data for each connection Meant for storage in fast access RAM |
Variables
|
Name |
Description |
![]() |
ID of the currently loaded HTTP_CONN | |
![]() |
Content-type strings corresponding to HTTP_FILE_TYPE | |
![]() |
| |
![]() |
Header strings for which we'd like to parse | |
![]() |
Initial response strings (Corresponding to HTTP_STATUS) | |
![]() |
HTTP stubs with state machine and socket |