summaryrefslogtreecommitdiff
path: root/src/ne_private.h
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-09-26 09:13:42 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2006-09-26 09:13:42 +0000
commitc3706745d52552e6b1d9d89ba9e0054bd753812c (patch)
tree6860465c5d0ca700e68458ee10ca1ea20e914fa7 /src/ne_private.h
parent808cce47c401fcbbf6036fc9668716b85df4a58c (diff)
downloadneon-c3706745d52552e6b1d9d89ba9e0054bd753812c.tar.gz
Add new hook which runs after the headers have been read:
* src/ne_request.h (ne_post_headers_fn, ne_hook_post_headers): Add type, prototype. * src/ne_private.h (struct ne_session_s): Add post_headers_hooks field. * src/ne_request.c (ne_begin_request): Run post_headers hooks. * src/ne_session.c (ne_session_destroy): Destroy post_headers hooks. (ne_hook_post_headers, ne_unhook_post_headers): New functions. * test/request.c (status_to_string): New function. (hook_post_send): Use it. (hook_post_headers): New function. (hooks): Test post_headers hook. git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1075 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'src/ne_private.h')
-rw-r--r--src/ne_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ne_private.h b/src/ne_private.h
index 8fb40e6..5e9fa43 100644
--- a/src/ne_private.h
+++ b/src/ne_private.h
@@ -86,8 +86,8 @@ struct ne_session_s {
int rdtimeout; /* read timeout. */
- struct hook *create_req_hooks, *pre_send_hooks, *post_send_hooks;
- struct hook *destroy_req_hooks, *destroy_sess_hooks, *private;
+ struct hook *create_req_hooks, *pre_send_hooks, *post_send_hooks,
+ *post_headers_hooks, *destroy_req_hooks, *destroy_sess_hooks, *private;
char *user_agent; /* full User-Agent: header field */