aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-25 22:33:06 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-25 22:33:06 +0100
commit4d603302535155ffe71208e86de14c7abc4e775d (patch)
tree303af202ae603f717f6f27ea630a55c8b10046f1 /src/afb-hreq.c
parentefcba05ca901c277ce44e4be8c475b79595ea0ca (diff)
websocket: initial (not integrated)
Change-Id: I55943a81101a189d621f37f0a0b2fe21c9fbc215 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.c')
-rw-r--r--src/afb-hreq.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/afb-hreq.c b/src/afb-hreq.c
index 613d4199..7bee69b3 100644
--- a/src/afb-hreq.c
+++ b/src/afb-hreq.c
@@ -240,6 +240,11 @@ const char *afb_hreq_get_argument(struct afb_hreq *hreq, const char *name)
return MHD_lookup_connection_value(hreq->connection, MHD_GET_ARGUMENT_KIND, name);
}
+const char *afb_hreq_get_header(struct afb_hreq *hreq, const char *name)
+{
+ return MHD_lookup_connection_value(hreq->connection, MHD_HEADER_KIND, name);
+}
+
struct afb_req_itf afb_hreq_itf = {
.get_cookie = (void*)afb_hreq_get_cookie,
.get_argument = (void*)afb_hreq_get_argument