summaryrefslogtreecommitdiff
path: root/Libraries/LibWeb/Loader/ResourceLoader.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-09-28 11:55:26 +0200
committerAndreas Kling <kling@serenityos.org>2020-09-28 11:55:26 +0200
commit2946a684efd1d3c34148d16121b118574b6a9132 (patch)
tree0c541334f692056dda692329d781979a18693ceb /Libraries/LibWeb/Loader/ResourceLoader.h
parentcfafd4d52da0ce04231cdeadc93a9d6764cceb8b (diff)
downloadserenity-2946a684efd1d3c34148d16121b118574b6a9132.zip
ProtocolServer+LibWeb: Support more detailed HTTP requests
This patch adds the ability for ProtocolServer clients to specify which HTTP method to use, and also to include an optional HTTP request body.
Diffstat (limited to 'Libraries/LibWeb/Loader/ResourceLoader.h')
-rw-r--r--Libraries/LibWeb/Loader/ResourceLoader.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Libraries/LibWeb/Loader/ResourceLoader.h b/Libraries/LibWeb/Loader/ResourceLoader.h
index 7f6c62d0f9..d6cb8d1ede 100644
--- a/Libraries/LibWeb/Loader/ResourceLoader.h
+++ b/Libraries/LibWeb/Loader/ResourceLoader.h
@@ -44,6 +44,7 @@ public:
RefPtr<Resource> load_resource(Resource::Type, const LoadRequest&);
+ void load(const LoadRequest&, Function<void(const ByteBuffer&, const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers)> success_callback, Function<void(const String&)> error_callback = nullptr);
void load(const URL&, Function<void(const ByteBuffer&, const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers)> success_callback, Function<void(const String&)> error_callback = nullptr);
void load_sync(const URL&, Function<void(const ByteBuffer&, const HashMap<String, String, CaseInsensitiveStringTraits>& response_headers)> success_callback, Function<void(const String&)> error_callback = nullptr);