summaryrefslogtreecommitdiff
path: root/libsoup/soup-client-message-io.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2021-05-15 16:44:16 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2021-05-16 12:31:03 +0000
commit407f7b19ce5413367d443342d77b497c2daf105f (patch)
tree69d6e2d1d647030bc149b250c1d36543692f0c9d /libsoup/soup-client-message-io.c
parent11bd65c9cb66a84019ea17dec02ba170094355dc (diff)
downloadlibsoup-407f7b19ce5413367d443342d77b497c2daf105f.tar.gz
connection: move the code to check if idle connection is open to http1 implementation
Add SoupClientMessageIO::is_open, implemented by http1 and used by SoupConnection.
Diffstat (limited to 'libsoup/soup-client-message-io.c')
-rw-r--r--libsoup/soup-client-message-io.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libsoup/soup-client-message-io.c b/libsoup/soup-client-message-io.c
index 7a48006a..c0c2c533 100644
--- a/libsoup/soup-client-message-io.c
+++ b/libsoup/soup-client-message-io.c
@@ -106,3 +106,9 @@ soup_client_message_io_get_response_stream (SoupClientMessageIO *io,
{
return io->funcs->get_response_stream (io, msg, error);
}
+
+gboolean
+soup_client_message_io_is_open (SoupClientMessageIO *io)
+{
+ return io->funcs->is_open (io);
+}