41 #ifndef LWIP_HDR_APPS_HTTPD_H
42 #define LWIP_HDR_APPS_HTTPD_H
84 typedef const char *(*tCGIHandler)(
int iIndex,
int iNumParams,
char *pcParam[],
94 const char *pcCGIName;
95 tCGIHandler pfnCGIHandler;
98 void http_set_cgi_handlers(
const tCGI *pCGIs,
int iNumHandlers);
102 #if LWIP_HTTPD_CGI || LWIP_HTTPD_CGI_SSI
104 #if LWIP_HTTPD_CGI_SSI
114 extern void httpd_cgi_handler(
struct fs_file *file,
const char* uri,
int iNumParams,
115 char **pcParam,
char **pcValue
117 ,
void *connection_state
156 typedef u16_t (*tSSIHandler)(
157 #if LWIP_HTTPD_SSI_RAW
158 const char* ssi_tag_name,
162 char *pcInsert,
int iInsertLen
163 #if LWIP_HTTPD_SSI_MULTIPART
164 ,
u16_t current_tag_part,
u16_t *next_tag_part
166 #if defined(LWIP_HTTPD_FILE_STATE) && LWIP_HTTPD_FILE_STATE
167 ,
void *connection_state
174 void http_set_ssi_handler(tSSIHandler pfnSSIHandler,
175 const char **ppcTags,
int iNumTags);
181 #define HTTPD_SSI_TAG_UNKNOWN 0xFFFF
185 #if LWIP_HTTPD_SUPPORT_POST
209 err_t httpd_post_begin(
void *connection,
const char *uri,
const char *http_request,
210 u16_t http_request_len,
int content_len,
char *response_uri,
211 u16_t response_uri_len,
u8_t *post_auto_wnd);
223 err_t httpd_post_receive_data(
void *connection,
struct pbuf *p);
236 void httpd_post_finished(
void *connection,
char *response_uri,
u16_t response_uri_len);
238 #if LWIP_HTTPD_POST_MANUAL_WND
239 void httpd_post_data_recved(
void *connection,
u16_t recved_len);
246 #if HTTPD_ENABLE_HTTPS
247 struct altcp_tls_config;
248 void httpd_inits(
struct altcp_tls_config *conf);
uint8_t u8_t
Definition: arch.h:125
uint16_t u16_t
Definition: arch.h:127
#define LWIP_HTTPD_FILE_STATE
Definition: httpd_opts.h:365
s8_t err_t
Definition: err.h:96