45 #include "lwip/pbuf.h"
52 #ifndef LWIP_HTTPD_CGI
53 #define LWIP_HTTPD_CGI 0
57 #ifndef LWIP_HTTPD_SSI
58 #define LWIP_HTTPD_SSI 0
62 #ifndef LWIP_HTTPD_SUPPORT_POST
63 #define LWIP_HTTPD_SUPPORT_POST 0
97 typedef const char *(*tCGIHandler)(
int iIndex,
int iNumParams,
char *pcParam[],
106 const char *pcCGIName;
107 tCGIHandler pfnCGIHandler;
110 void http_set_cgi_handlers(
const tCGI *pCGIs,
int iNumHandlers);
113 #ifndef LWIP_HTTPD_MAX_CGI_PARAMETERS
114 #define LWIP_HTTPD_MAX_CGI_PARAMETERS 16
117 #endif // LWIP_HTTPD_CGI
127 #ifndef LWIP_HTTPD_SSI_MULTIPART
128 #define LWIP_HTTPD_SSI_MULTIPART 0
160 typedef u16_t (*tSSIHandler)(
int iIndex,
char *pcInsert,
int iInsertLen
161 #if LWIP_HTTPD_SSI_MULTIPART
162 , u16_t current_tag_part, u16_t *next_tag_part
163 #endif // LWIP_HTTPD_SSI_MULTIPART
164 #if LWIP_HTTPD_FILE_STATE
165 ,
void *connection_state
166 #endif // LWIP_HTTPD_FILE_STATE
169 void http_set_ssi_handler(tSSIHandler pfnSSIHandler,
170 const char **ppcTags,
int iNumTags);
173 #ifndef LWIP_HTTPD_MAX_TAG_NAME_LEN
174 #define LWIP_HTTPD_MAX_TAG_NAME_LEN 8
178 #ifndef LWIP_HTTPD_MAX_TAG_INSERT_LEN
179 #define LWIP_HTTPD_MAX_TAG_INSERT_LEN 192
182 #endif // LWIP_HTTPD_SSI
184 #if LWIP_HTTPD_SUPPORT_POST
207 err_t httpd_post_begin(
void *connection,
const char *uri,
const char *http_request,
208 u16_t http_request_len,
int content_len,
char *response_uri,
209 u16_t response_uri_len, u8_t *post_auto_wnd);
220 err_t httpd_post_receive_data(
void *connection,
struct pbuf *p);
232 void httpd_post_finished(
void *connection,
char *response_uri, u16_t response_uri_len);
234 #ifndef LWIP_HTTPD_POST_MANUAL_WND
235 #define LWIP_HTTPD_POST_MANUAL_WND 0
238 #if LWIP_HTTPD_POST_MANUAL_WND
239 void httpd_post_data_recved(
void *connection, u16_t recved_len);
240 #endif // LWIP_HTTPD_POST_MANUAL_WND
242 #endif // LWIP_HTTPD_SUPPORT_POST
246 #endif // __HTTPD_H__