comparison include/urweb/urweb_cpp.h @ 1931:1a04b1edded2

Fix regression in http.c for long-polling connections; add lazy initialization of database connections, to avoid the overhead in handlers that don't use SQL
author Adam Chlipala <adam@chlipala.net>
date Wed, 11 Dec 2013 14:57:54 -0500
parents 52e88e139b25
children 98895243b5b6
comparison
equal deleted inserted replaced
1930:5a7ae5acdcea 1931:1a04b1edded2
35 failure_kind uw_begin_init(struct uw_context *); 35 failure_kind uw_begin_init(struct uw_context *);
36 void uw_set_on_success(char *); 36 void uw_set_on_success(char *);
37 void uw_set_headers(struct uw_context *, char *(*get_header)(void *, const char *), void *get_header_data); 37 void uw_set_headers(struct uw_context *, char *(*get_header)(void *, const char *), void *get_header_data);
38 void uw_set_env(struct uw_context *, char *(*get_env)(void *, const char *), void *get_env_data); 38 void uw_set_env(struct uw_context *, char *(*get_env)(void *, const char *), void *get_env_data);
39 failure_kind uw_begin(struct uw_context *, char *path); 39 failure_kind uw_begin(struct uw_context *, char *path);
40 void uw_ensure_transaction(struct uw_context *);
40 failure_kind uw_begin_onError(struct uw_context *, char *msg); 41 failure_kind uw_begin_onError(struct uw_context *, char *msg);
41 void uw_login(struct uw_context *); 42 void uw_login(struct uw_context *);
42 void uw_commit(struct uw_context *); 43 void uw_commit(struct uw_context *);
43 int uw_rollback(struct uw_context *, int will_retry); 44 int uw_rollback(struct uw_context *, int will_retry);
44 45