LwIP + 0/2 examples
CodeScope will show references to tSSIHandler from the following samples and libraries:
Examples
STM324x9I_EVAL
Applications
LwIP
STM324xG_EVAL
Applications
LwIP
 
Symbols
loading...
Files
loading...

tSSIHandler

Function pointer for the SSI tag handler callback. This function will be called each time the HTTPD server detects a tag of the form in files with extensions mentioned in the g_pcSSIExtensions array (currently .shtml, .shtm, .ssi, .xml, .json) where "name" appears as one of the tags supplied to http_set_ssi_handler in the tags array. The returned insert string, which will be appended after the the string "" in file sent back to the client, should be written to pointer pcInsert. iInsertLen contains the size of the buffer pointed to by pcInsert. The iIndex parameter provides the zero-based index of the tag as found in the tags array and identifies the tag that is to be processed. The handler returns the number of characters written to pcInsert excluding any terminating NULL or HTTPD_SSI_TAG_UNKNOWN when tag is not recognized. Note that the behavior of this SSI mechanism is somewhat different from the "normal" SSI processing as found in, for example, the Apache web server. In this case, the inserted text is appended following the SSI tag rather than replacing the tag entirely. This allows for an implementation that does not require significant additional buffering of output data yet which will still offer usable SSI functionality. One downside to this approach is when attempting to use SSI within JavaScript. The SSI tag is structured to resemble an HTML comment but this syntax does not constitute a comment within JavaScript and, hence, leaving the tag in place will result in problems in these cases. In order to avoid these problems, define LWIP_HTTPD_SSI_INCLUDE_TAG as zero in your lwip options file, or use JavaScript style block comments in the form / * # name * / (without the spaces).

Syntax

typedef u16_t (*tSSIHandler)( #if LWIP_HTTPD_SSI_RAW const char* ssi_tag_name, #else int iIndex, #endif char *pcInsert, int iInsertLen #if LWIP_HTTPD_SSI_MULTIPART , u16_t current_tag_part, u16_t *next_tag_part #endif #if defined(LWIP_HTTPD_FILE_STATE) && LWIP_HTTPD_FILE_STATE , void *connection_state #endif );

Examples

tSSIHandler is referenced by 2 libraries and example projects.

References

LocationReferrerText
httpd.h:156
typedef u16_t (*tSSIHandler)(
httpd.c:320
static tSSIHandler httpd_ssi_handler;
httpd.c:2707http_set_ssi_handler()
http_set_ssi_handler(tSSIHandler ssi_handler, const char **tags, int num_tags)
httpd.h:174
void http_set_ssi_handler(tSSIHandler pfnSSIHandler,

tSSIHandler
all items filtered out