X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fnet%2Fhttp.h;h=665e97aa711b8e4aa14b0f4b163aa61a8e1e37a5;hb=d603ad8d35758a54f6cb08a7f8c16f6327ea86e0;hp=53d8100d1ded6ebc9d092f73f87ff2265dc017f1;hpb=00a56e3c9af3422795c598fda5e9e6ff74ca6b48;p=bertos.git diff --git a/bertos/net/http.h b/bertos/net/http.h index 53d8100d..665e97aa 100644 --- a/bertos/net/http.h +++ b/bertos/net/http.h @@ -43,14 +43,7 @@ #ifndef NET_HTTP_H #define NET_HTTP_H - -#include - -#include -#include -#include #include -#include typedef int (*http_handler_t)(struct netconn *client, const char *name, char *revc_buf, size_t revc_len); @@ -66,6 +59,8 @@ typedef struct HttpCGI #define CGI_MATCH_NAME 1 ///< Select item in table only if string match #define CGI_MATCH_EXT 2 ///< Select item in table if the extention match +void http_getPageName(const char *revc_buf, size_t recv_len, char *page_name, size_t len); + void http_sendOk(struct netconn *client); void http_sendFileNotFound(struct netconn *client); void http_sendInternalErr(struct netconn *client); @@ -73,4 +68,8 @@ void http_sendInternalErr(struct netconn *client); void http_poll(struct netconn *server); void http_init(http_handler_t default_callback, struct HttpCGI *table); +int http_testSetup(void); +int http_testRun(void); +int http_testTearDown(void); + #endif /* NET_HTTP_H */