diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-06 00:13:28 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-06 00:13:28 +0000 |
commit | d9f5cb7a28ee79e299e41d3ce325171f01e1a3d7 (patch) | |
tree | c13af66675cbd2ed3de340ab139297e4dcdbd199 /src/include | |
parent | 8d66c8c5cac310958fa64e3f62b828ea960202ba (diff) | |
download | tipidee-d9f5cb7a28ee79e299e41d3ce325171f01e1a3d7.tar.xz |
Some fixes, preparation for changes in error responses
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/tipidee/util.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/include/tipidee/util.h b/src/include/tipidee/util.h index 5160a69..7870a23 100644 --- a/src/include/tipidee/util.h +++ b/src/include/tipidee/util.h @@ -19,9 +19,16 @@ enum tipidee_transfercoding_e TIPIDEE_TRANSFERCODING_UNKNOWN } ; +typedef struct tipidee_defaulttext_s tipidee_defaulttext, *tipidee_defaulttext_ref ; +struct tipidee_defaulttext_s +{ + char const *reason ; + char const *text ; +} ; + extern int tipidee_util_chunked_read (buffer *, stralloc *, size_t, tain const *, tain *) ; #define tipidee_util_chunked_read_g(b, sa, max, deadline) tipidee_util_chunked_read(b, sa, max, (deadline), &STAMP) extern int tipidee_util_httpdate (char const *, tain *) ; - +extern int tipidee_util_defaulttext (unsigned int, tipidee_defaulttext *) ; #endif |