summaryrefslogtreecommitdiff
path: root/daemon/gvfsbackendhttp.h
diff options
context:
space:
mode:
authorDaniel Kolesa <dkolesa@igalia.com>2021-02-11 22:43:53 +0100
committerDaniel Kolesa <dkolesa@igalia.com>2022-02-01 20:55:46 +0100
commitbeaaf78b72640f8231f49fdfc1b6dcfc3d14f149 (patch)
tree0fbfd0f22d48fac0cd68e4e76cf00f0e99d9f978 /daemon/gvfsbackendhttp.h
parent2cadf5d4864f2df7e999b634070bffa8590d4f26 (diff)
downloadgvfs-beaaf78b72640f8231f49fdfc1b6dcfc3d14f149.tar.gz
dav, http: port to libsoup3
The dav and http backends of the daemon now use libsoup3. Things should work more or less the same as before. One caveat is that the soup session no longer defaults to ssl-strict, so it will no longer silently accept certificates. This does not affect the DAV backend (it has its own handling which is replicated in the soup3 port) but it does affect the http backend. Fixes: https://gitlab.gnome.org/GNOME/gvfs/-/issues/208
Diffstat (limited to 'daemon/gvfsbackendhttp.h')
-rw-r--r--daemon/gvfsbackendhttp.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/daemon/gvfsbackendhttp.h b/daemon/gvfsbackendhttp.h
index f132c568..f05e92a3 100644
--- a/daemon/gvfsbackendhttp.h
+++ b/daemon/gvfsbackendhttp.h
@@ -1,6 +1,7 @@
/* GIO - GLib Input, Output and Streaming Library
*
* Copyright (C) 2008 Red Hat, Inc.
+ * Copyright (C) 2021 Igalia S.L.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -49,7 +50,7 @@ struct _GVfsBackendHttp
{
GVfsBackend parent_instance;
- SoupURI *mount_base;
+ GUri *mount_base;
SoupSession *session;
};
@@ -61,19 +62,14 @@ char * http_path_get_basename (const char *path_str);
int http_error_code_from_status (guint status);
-SoupURI * http_backend_get_mount_base (GVfsBackend *backend);
+SoupSession * http_try_init_session (gint max_conns,
+ gint max_conns_per_host);
-guint http_backend_send_message (GVfsBackend *backend,
- SoupMessage *msg);
-
-void http_backend_queue_message (GVfsBackend *backend,
- SoupMessage *msg,
- SoupSessionCallback callback,
- gpointer user_data);
+GUri * http_backend_get_mount_base (GVfsBackend *backend);
void http_backend_open_for_read (GVfsBackend *backend,
GVfsJob *job,
- SoupURI *uri);
+ GUri *uri);
void http_job_failed (GVfsJob *job,
SoupMessage *msg);