Found 15 other functions taking a
http_state
argument:
The connection shall be actively closed. Reset the sent- and recv-callbacks.
End of file: either close the connection (Connection: close) or close the file (Connection: keep-alive)
Try to send more data on this pcb.
Get the file struct for a 404 error page. Tries some file names and returns NULL if none found.
Free a struct http_state. Also frees the file data if dynamic.
The connection shall be actively closed (using RST to close from fault states). Reset the sent- and recv-callbacks.
Sub-function of http_send(): end-of-file (or block) is reached, either close the file or read the next block (if supported). @returns: 0 if the file is finished or no data has been read 1 if the file is not finished and data has been read
Try to find the file specified by uri and, if found, initialize hs accordingly.
Initialize a http connection with a file to send (if found). Called by http_find_file and http_find_error_file.
When data has been received in the correct state, try to parse it as a HTTP request.
Free a struct http_state. Also frees the file data if dynamic.
Sub-function of http_send(): This is the normal send-routine for non-ssi files @returns: - 1: data has been written (so call tcp_ouput) - 0: no data has been written (no need to call tcp_output)
Sub-function of http_send(): This is the send-routine for ssi files @returns: - 1: data has been written (so call tcp_ouput) - 0: no data has been written (no need to call tcp_output)
Extract URI parameters from the parameter-part of an URI in the form "test.cgi?x=y" @todo: better explanation! Pointers to the parameters are stored in hs->param_vals.
Insert a tag (found in an shtml in the form of "" into the file. The tag's name is stored in ssi->tag_name (NULL-terminated), the replacement should be written to hs->tag_insert (up to a length of LWIP_HTTPD_MAX_TAG_INSERT_LEN). The amount of data written is stored to ssi->tag_insert_len. @todo: return tag_insert_len - maybe it can be removed from struct http_state?