Mercurial > urweb
comparison include/urweb.h @ 458:8f65b0fa3b29
Avoid allocating strings for requestHeader
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Thu, 06 Nov 2008 10:04:03 -0500 |
parents | 360cbc202756 |
children | 21bb5bbba2e9 |
comparison
equal
deleted
inserted
replaced
457:360cbc202756 | 458:8f65b0fa3b29 |
---|---|
13 void uw_reset(uw_context); | 13 void uw_reset(uw_context); |
14 void uw_reset_keep_request(uw_context); | 14 void uw_reset_keep_request(uw_context); |
15 void uw_reset_keep_error_message(uw_context); | 15 void uw_reset_keep_error_message(uw_context); |
16 | 16 |
17 failure_kind uw_begin_init(uw_context); | 17 failure_kind uw_begin_init(uw_context); |
18 failure_kind uw_begin(uw_context, char *headers, char *path); | 18 void uw_set_headers(uw_context, char *headers); |
19 failure_kind uw_begin(uw_context, char *path); | |
19 | 20 |
20 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...); | 21 __attribute__((noreturn)) void uw_error(uw_context, failure_kind, const char *fmt, ...); |
21 char *uw_error_message(uw_context); | 22 char *uw_error_message(uw_context); |
22 void uw_push_cleanup(uw_context, void (*func)(void *), void *arg); | 23 void uw_push_cleanup(uw_context, void (*func)(void *), void *arg); |
23 void uw_pop_cleanup(uw_context); | 24 void uw_pop_cleanup(uw_context); |