diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-05-14 11:01:48 +0200 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2021-05-14 11:01:48 +0200 |
commit | 8a4e1e707d13b19c9b57f49c536d6ce201c72e8f (patch) | |
tree | 3c7f01737efd16c9e4d450d9828facdd8576c112 /libsoup/soup-message-private.h | |
parent | fcbbcf20af32744b4b01bc440a321d1a44b56731 (diff) | |
download | libsoup-8a4e1e707d13b19c9b57f49c536d6ce201c72e8f.tar.gz |
message: add soup_message_try_sniff_content()
And remove soup_message_get_content_sniffer(). This moves code from
http1 io implementation to SoupMessage to be reused by http2 too.
Diffstat (limited to 'libsoup/soup-message-private.h')
-rw-r--r-- | libsoup/soup-message-private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libsoup/soup-message-private.h b/libsoup/soup-message-private.h index 9eea56e4..ce7fcb46 100644 --- a/libsoup/soup-message-private.h +++ b/libsoup/soup-message-private.h @@ -101,9 +101,13 @@ void soup_message_set_connection (SoupMessage *msg, SoupClientMessageIO *soup_message_get_io_data (SoupMessage *msg); -SoupContentSniffer *soup_message_get_content_sniffer (SoupMessage *msg); void soup_message_set_content_sniffer (SoupMessage *msg, SoupContentSniffer *sniffer); +gboolean soup_message_try_sniff_content (SoupMessage *msg, + GInputStream *stream, + gboolean blocking, + GCancellable *cancellable, + GError **error); GInputStream *soup_message_get_request_body_stream (SoupMessage *msg); void soup_message_set_reason_phrase (SoupMessage *msg, |