SpriteHTTPD - embedded HTTP server with read-only filesystem and templating, originally developed for ESP8266, now stand-alone and POSIX compatible.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
spritehttpd/spritehttpd/include/httpd-espfs.h

13 lines
428 B

#pragma once
#include "httpd.h"
/**
* The template substitution callback.
* Returns CGI_MORE if more should be sent within the token, CGI_DONE otherwise.
*/
typedef httpd_cgi_state (* TplCallback)(HttpdConnData *connData, char *token, void **arg);
httpd_cgi_state cgiEspFsHook(HttpdConnData *connData);
httpd_cgi_state cgiEspFsTemplate(HttpdConnData *connData);
int tplSend(HttpdConnData *conn, const char *str, int len);