diff options
author | Andreas Kling <kling@serenityos.org> | 2020-09-28 11:55:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-09-28 11:55:26 +0200 |
commit | 2946a684efd1d3c34148d16121b118574b6a9132 (patch) | |
tree | 0c541334f692056dda692329d781979a18693ceb /Libraries/LibWeb/Loader/ResourceLoader.h | |
parent | cfafd4d52da0ce04231cdeadc93a9d6764cceb8b (diff) | |
download | serenity-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.h | 1 |
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); |