summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-05-29 14:29:26 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-05-29 14:29:26 -0400
commit5b421885fdfad728ab584ef15ec1873ec3bc2a05 (patch)
tree02dc2d6caca935269cf3c6f523ad087c80d9c778 /include
parentf92289880fd8457a080e150cb50f0fa2af3eff9c (diff)
getHeader and setHeader
Diffstat (limited to 'include')
-rw-r--r--include/types.h2
-rw-r--r--include/urweb.h7
2 files changed, 9 insertions, 0 deletions
diff --git a/include/types.h b/include/types.h
index 1e479398..91089ef3 100644
--- a/include/types.h
+++ b/include/types.h
@@ -90,6 +90,8 @@ typedef struct {
uw_Basis_string (*cookie_sig)(uw_context);
int (*check_url)(const char *);
int (*check_mime)(const char *);
+ int (*check_requestHeader)(const char *);
+ int (*check_responseHeader)(const char *);
void (*on_error)(uw_context, char *);
diff --git a/include/urweb.h b/include/urweb.h
index 019761f7..4c1489c9 100644
--- a/include/urweb.h
+++ b/include/urweb.h
@@ -217,9 +217,16 @@ uw_Basis_client uw_Basis_self(uw_context);
uw_Basis_string uw_Basis_bless(uw_context, uw_Basis_string);
uw_Basis_string uw_Basis_blessMime(uw_context, uw_Basis_string);
+uw_Basis_string uw_Basis_blessRequestHeader(uw_context, uw_Basis_string);
+uw_Basis_string uw_Basis_blessResponseHeader(uw_context, uw_Basis_string);
uw_Basis_string uw_Basis_checkUrl(uw_context, uw_Basis_string);
uw_Basis_string uw_Basis_checkMime(uw_context, uw_Basis_string);
+uw_Basis_string uw_Basis_checkRequestHeader(uw_context, uw_Basis_string);
+uw_Basis_string uw_Basis_checkResponseHeader(uw_context, uw_Basis_string);
+
+uw_Basis_string uw_Basis_getHeader(uw_context, uw_Basis_string name);
+uw_unit uw_Basis_setHeader(uw_context, uw_Basis_string name, uw_Basis_string value);
uw_Basis_string uw_unnull(uw_Basis_string);
uw_Basis_string uw_Basis_makeSigString(uw_context, uw_Basis_string);