summaryrefslogtreecommitdiffstats
path: root/src/afb-hreq.h
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-04-08 17:27:06 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-04-08 17:27:06 +0200
commitfcef933b69ccc363ad10d9f7308f02c5dc474ff6 (patch)
tree7921c7b570b4ce901d92f50fdb9dbb3f59ec5e47 /src/afb-hreq.h
parent041ce4919b4513f7e019b018558e947164101b35 (diff)
restoring cookie of session
Change-Id: I3bd1ba1827dee5a16dd927154f802689894cc6a3 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-hreq.h')
-rw-r--r--src/afb-hreq.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/afb-hreq.h b/src/afb-hreq.h
index 41f499d0..5c09e4e6 100644
--- a/src/afb-hreq.h
+++ b/src/afb-hreq.h
@@ -63,4 +63,13 @@ extern struct afb_req afb_hreq_to_req(struct afb_hreq *hreq);
extern struct AFB_clientCtx *afb_hreq_context(struct afb_hreq *hreq);
+extern int afb_hreq_init_cookie(int port, const char *path, int maxage);
+
+extern void afb_hreq_reply_static(struct afb_hreq *hreq, unsigned status, size_t size, char *buffer, ...);
+
+extern void afb_hreq_reply_copy(struct afb_hreq *hreq, unsigned status, size_t size, char *buffer, ...);
+
+extern void afb_hreq_reply_free(struct afb_hreq *hreq, unsigned status, size_t size, char *buffer, ...);
+
+extern void afb_hreq_reply_empty(struct afb_hreq *hreq, unsigned status, ...);