41 #include "lwip/pbuf.h"
45 #ifndef LWIP_HTTPD_CGI
46 #define LWIP_HTTPD_CGI 0
50 #ifndef LWIP_HTTPD_SSI
51 #define LWIP_HTTPD_SSI 0
55 #ifndef LWIP_HTTPD_SUPPORT_POST
56 #define LWIP_HTTPD_SUPPORT_POST 0
91 typedef const char *(*tCGIHandler)(
int iIndex,
int iNumParams,
char *pcParam[],
100 const char *pcCGIName;
101 tCGIHandler pfnCGIHandler;
104 void http_set_cgi_handlers(
const tCGI *pCGIs,
int iNumHandlers);
108 #ifndef LWIP_HTTPD_MAX_CGI_PARAMETERS
109 #define LWIP_HTTPD_MAX_CGI_PARAMETERS 16
120 #ifndef LWIP_HTTPD_SSI_MULTIPART
121 #define LWIP_HTTPD_SSI_MULTIPART 0
153 typedef u16_t (*tSSIHandler)(
int iIndex,
char *pcInsert,
int iInsertLen
154 #if LWIP_HTTPD_SSI_MULTIPART
155 ,
u16_t current_tag_part,
u16_t *next_tag_part
157 #if LWIP_HTTPD_FILE_STATE
158 ,
void *connection_state
162 void http_set_ssi_handler(tSSIHandler pfnSSIHandler,
163 const char **ppcTags,
int iNumTags);
166 #ifndef LWIP_HTTPD_MAX_TAG_NAME_LEN
167 #define LWIP_HTTPD_MAX_TAG_NAME_LEN 8
171 #ifndef LWIP_HTTPD_MAX_TAG_INSERT_LEN
172 #define LWIP_HTTPD_MAX_TAG_INSERT_LEN 192
177 #if LWIP_HTTPD_SUPPORT_POST
199 err_t httpd_post_begin(
void *connection,
const char *uri,
const char *http_request,
200 u16_t http_request_len,
int content_len,
char *response_uri,
201 u16_t response_uri_len,
u8_t *post_auto_wnd);
211 err_t httpd_post_receive_data(
void *connection,
struct pbuf *p);
222 void httpd_post_finished(
void *connection,
char *response_uri,
u16_t response_uri_len);
224 #ifndef LWIP_HTTPD_POST_MANUAL_WND
225 #define LWIP_HTTPD_POST_MANUAL_WND 0
228 #if LWIP_HTTPD_POST_MANUAL_WND
229 void httpd_post_data_recved(
void *connection,
u16_t recved_len);