projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add comments.bertos/net/http.c
[bertos.git]
/
bertos
/
net
/
http.h
diff --git
a/bertos/net/http.h
b/bertos/net/http.h
index 497012953239ba9a6c4ef54e7067a3b563a83d10..53d8100d1ded6ebc9d092f73f87ff2265dc017f1 100644
(file)
--- a/
bertos/net/http.h
+++ b/
bertos/net/http.h
@@
-56,14
+56,15
@@
typedef int (*http_handler_t)(struct netconn *client, const char *name, char *re
typedef struct HttpCGI
{
typedef struct HttpCGI
{
- unsigned type;
- const char *name;
- http_handler_t handler;
+ unsigned type;
///< Strategy to find string in the cgi table.
+ const char *name;
///< Request string from GET request
+ http_handler_t handler;
///< Callback to process the special request
} HttpCGI;
} HttpCGI;
+
#define CGI_MATCH_NONE 0
#define CGI_MATCH_NONE 0
-#define CGI_MATCH_NAME 1
-#define CGI_MATCH_EXT 2
+#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_sendOk(struct netconn *client);
void http_sendFileNotFound(struct netconn *client);
void http_sendOk(struct netconn *client);
void http_sendFileNotFound(struct netconn *client);