summaryrefslogtreecommitdiff
path: root/src/libtipidee/tipidee_response_header_common_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libtipidee/tipidee_response_header_common_put.c')
-rw-r--r--src/libtipidee/tipidee_response_header_common_put.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libtipidee/tipidee_response_header_common_put.c b/src/libtipidee/tipidee_response_header_common_put.c
deleted file mode 100644
index e9a1a07..0000000
--- a/src/libtipidee/tipidee_response_header_common_put.c
+++ /dev/null
@@ -1,20 +0,0 @@
-/* ISC license. */
-
-#include <skalibs/buffer.h>
-
-#include <tipidee/response.h>
-
-size_t tipidee_response_header_common_put (buffer *b, uint32_t options, tain const *stamp)
-{
- char fmt[128] ;
- size_t n = buffer_putnoflush(b, fmt, tipidee_response_header_date(fmt, 128, stamp)) ;
- for (tipidee_response_header_builtin const *p = tipidee_response_header_builtin_table ; p->key ; p++)
- {
- n += buffer_putsnoflush(b, p->key) ;
- n += buffer_putnoflush(b, ": ", 2) ;
- n += buffer_putsnoflush(b, p->value) ;
- n += buffer_putnoflush(b, "\r\n", 2) ;
- }
- if (options & 1) n += buffer_putsnoflush(b, "Connection: close\r\n") ;
- return n ;
-}