summaryrefslogtreecommitdiff
path: root/libsoup/soup-session.h
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2012-12-28 21:53:02 -0500
committerDan Winship <danw@gnome.org>2013-01-14 17:19:39 -0500
commit944a5bfaa3a71d3e58ab00fac55978df51d03bd7 (patch)
tree09bc97fee48e45b54f4c1be43552ede260c8a137 /libsoup/soup-session.h
parentf704e294870a148536b712f4138e5c504d662041 (diff)
downloadlibsoup-944a5bfaa3a71d3e58ab00fac55978df51d03bd7.tar.gz
soup-session: add SoupMessage-based streaming APIs
SoupRequestHTTP is now implemented in terms of SoupSession SoupMessage operations, so we might as well just expose those directly, for people who want streaming APIs, but not SoupRequest.
Diffstat (limited to 'libsoup/soup-session.h')
-rw-r--r--libsoup/soup-session.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libsoup/soup-session.h b/libsoup/soup-session.h
index 5d62667c..90cf12c7 100644
--- a/libsoup/soup-session.h
+++ b/libsoup/soup-session.h
@@ -110,6 +110,22 @@ void soup_session_abort (SoupSession *session);
GMainContext *soup_session_get_async_context(SoupSession *session);
+SOUP_AVAILABLE_IN_2_42
+void soup_session_send_async (SoupSession *session,
+ SoupMessage *msg,
+ GCancellable *cancellable,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+SOUP_AVAILABLE_IN_2_42
+GInputStream *soup_session_send_finish (SoupSession *session,
+ GAsyncResult *result,
+ GError **error);
+SOUP_AVAILABLE_IN_2_42
+GInputStream *soup_session_send (SoupSession *session,
+ SoupMessage *msg,
+ GCancellable *cancellable,
+ GError **error);
+
#ifndef SOUP_DISABLE_DEPRECATED
/* SOUP_AVAILABLE_IN_2_30 -- this trips up gtkdoc-scan */
SOUP_DEPRECATED_IN_2_38_FOR (soup_session_prefetch_dns)