summaryrefslogtreecommitdiff
path: root/include/urweb
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 15:16:57 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2012-07-21 15:16:57 -0400
commitefeb64a601c052ed533caee0131befe2c96bb91c (patch)
tree4be6d87576e314c5a2a1ecbaed89913bceca422f /include/urweb
parent8ac6c0fe4425753c64fa0ef0a129d33eef36cb5c (diff)
Top.postFields
Diffstat (limited to 'include/urweb')
-rw-r--r--include/urweb/types.h4
-rw-r--r--include/urweb/urweb.h5
2 files changed, 9 insertions, 0 deletions
diff --git a/include/urweb/types.h b/include/urweb/types.h
index c401b38f..152f4392 100644
--- a/include/urweb/types.h
+++ b/include/urweb/types.h
@@ -51,6 +51,10 @@ typedef struct uw_Basis_postBody {
typedef uw_Basis_string uw_Basis_queryString;
+typedef struct {
+ uw_Basis_string name, value, remaining;
+} uw_Basis_postField;
+
typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY, RETURN_INDIRECTLY } failure_kind;
typedef enum { SERVED, KEEP_OPEN, FAILED } request_result;
diff --git a/include/urweb/urweb.h b/include/urweb/urweb.h
index 21c8bc88..af0aafdb 100644
--- a/include/urweb/urweb.h
+++ b/include/urweb/urweb.h
@@ -363,4 +363,9 @@ uw_Basis_string uw_Basis_property(uw_context, uw_Basis_string);
void uw_begin_initializing(uw_context);
void uw_end_initializing(uw_context);
+uw_Basis_string uw_Basis_fieldName(uw_context, uw_Basis_postField);
+uw_Basis_string uw_Basis_fieldValue(uw_context, uw_Basis_postField);
+uw_Basis_string uw_Basis_remainingFields(uw_context, uw_Basis_postField);
+uw_Basis_postField *uw_Basis_firstFormField(uw_context, uw_Basis_string);
+
#endif