diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/types.h | 2 | ||||
-rw-r--r-- | include/urweb.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/types.h b/include/types.h index 19eae5ad..767b2345 100644 --- a/include/types.h +++ b/include/types.h @@ -39,7 +39,7 @@ typedef struct uw_Basis_file { uw_Basis_blob data; } uw_Basis_file; -typedef enum { SUCCESS, FATAL, BOUNDED_RETRY, UNLIMITED_RETRY, RETURN_BLOB } failure_kind; +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.h b/include/urweb.h index 76bb9f25..0a23018a 100644 --- a/include/urweb.h +++ b/include/urweb.h @@ -209,6 +209,7 @@ uw_Basis_blob uw_Basis_fileData(uw_context, uw_Basis_file); uw_Basis_int uw_Basis_blobSize(uw_context, uw_Basis_blob); __attribute__((noreturn)) void uw_return_blob(uw_context, uw_Basis_blob, uw_Basis_string mimeType); +__attribute__((noreturn)) void uw_redirect(uw_context, uw_Basis_string url); uw_Basis_time uw_Basis_now(uw_context); extern const uw_Basis_time uw_Basis_minTime; |