diff options
author | José Bollo <jose.bollo@iot.bzh> | 2016-03-25 22:33:06 +0100 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2016-03-25 22:33:06 +0100 |
commit | 4d603302535155ffe71208e86de14c7abc4e775d (patch) | |
tree | 303af202ae603f717f6f27ea630a55c8b10046f1 /src/afb-hreq.h | |
parent | efcba05ca901c277ce44e4be8c475b79595ea0ca (diff) |
websocket: initial (not integrated)
Change-Id: I55943a81101a189d621f37f0a0b2fe21c9fbc215
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.h')
-rw-r--r-- | src/afb-hreq.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/afb-hreq.h b/src/afb-hreq.h index fd2a2a3d..f2362b10 100644 --- a/src/afb-hreq.h +++ b/src/afb-hreq.h @@ -28,6 +28,7 @@ struct afb_hreq { AFB_session *session; struct MHD_Connection *connection; enum afb_method method; + const char *version; const char *url; size_t lenurl; const char *tail; @@ -50,4 +51,10 @@ extern int afb_hreq_reply_file(struct afb_hreq *request, int dirfd, const char * extern int afb_hreq_redirect_to(struct afb_hreq *request, const char *url); +extern const char *afb_hreq_get_cookie(struct afb_hreq *hreq, const char *name); + +extern const char *afb_hreq_get_argument(struct afb_hreq *hreq, const char *name); + +extern const char *afb_hreq_get_header(struct afb_hreq *hreq, const char *name); + extern struct afb_req_itf afb_hreq_itf; |