1 | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ |
---|
2 | /* |
---|
3 | * Copyright (C) 2000-2003, Ximian, Inc. |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef SOUP_MESSAGE_PRIVATE_H |
---|
7 | #define SOUP_MESSAGE_PRIVATE_H 1 |
---|
8 | |
---|
9 | #include <libsoup/soup-message.h> |
---|
10 | |
---|
11 | struct SoupMessagePrivate { |
---|
12 | gpointer io_data; |
---|
13 | |
---|
14 | guint msg_flags; |
---|
15 | |
---|
16 | GSList *chunks, *last_chunk; |
---|
17 | |
---|
18 | GSList *content_handlers; |
---|
19 | |
---|
20 | SoupHttpVersion http_version; |
---|
21 | |
---|
22 | SoupUri *uri; |
---|
23 | }; |
---|
24 | |
---|
25 | void soup_message_run_handlers (SoupMessage *msg, |
---|
26 | SoupHandlerPhase phase); |
---|
27 | |
---|
28 | void soup_message_cleanup_response (SoupMessage *req); |
---|
29 | |
---|
30 | |
---|
31 | typedef void (*SoupMessageGetHeadersFn) (SoupMessage *msg, |
---|
32 | GString *headers, |
---|
33 | SoupTransferEncoding *encoding, |
---|
34 | gpointer user_data); |
---|
35 | typedef guint (*SoupMessageParseHeadersFn)(SoupMessage *msg, |
---|
36 | char *headers, |
---|
37 | guint header_len, |
---|
38 | SoupTransferEncoding *encoding, |
---|
39 | guint *content_len, |
---|
40 | gpointer user_data); |
---|
41 | |
---|
42 | void soup_message_io_client (SoupMessage *msg, |
---|
43 | SoupSocket *sock, |
---|
44 | SoupMessageGetHeadersFn get_headers_cb, |
---|
45 | SoupMessageParseHeadersFn parse_headers_cb, |
---|
46 | gpointer user_data); |
---|
47 | void soup_message_io_server (SoupMessage *msg, |
---|
48 | SoupSocket *sock, |
---|
49 | SoupMessageGetHeadersFn get_headers_cb, |
---|
50 | SoupMessageParseHeadersFn parse_headers_cb, |
---|
51 | gpointer user_data); |
---|
52 | |
---|
53 | #endif /* SOUP_MESSAGE_PRIVATE_H */ |
---|