summaryrefslogtreecommitdiff
path: root/Libraries/LibHTTP
diff options
context:
space:
mode:
authorAnotherTest <ali.mpfard@gmail.com>2020-10-29 11:50:19 +0330
committerAndreas Kling <kling@serenityos.org>2020-10-30 23:42:03 +0100
commita461526b073d6723a7ebd56a9df1715f55315f4c (patch)
tree1c39b6786d1398a1b1d160f88dca57f8a26d2656 /Libraries/LibHTTP
parentb11b4b29e998b7c971e512580d6c5481bf4eb1f6 (diff)
downloadserenity-a461526b073d6723a7ebd56a9df1715f55315f4c.zip
LibHTTP+ProtocolServer+LibGemini: Remove Request::schedule()
This API is only used for HttpRequest, but replicated in GeminiRequest without an actual user, so remove it and construct the job like the rest of the protocols.
Diffstat (limited to 'Libraries/LibHTTP')
-rw-r--r--Libraries/LibHTTP/HttpRequest.cpp7
-rw-r--r--Libraries/LibHTTP/HttpRequest.h2
2 files changed, 0 insertions, 9 deletions
diff --git a/Libraries/LibHTTP/HttpRequest.cpp b/Libraries/LibHTTP/HttpRequest.cpp
index 0d6699ca3f..0793b13fe2 100644
--- a/Libraries/LibHTTP/HttpRequest.cpp
+++ b/Libraries/LibHTTP/HttpRequest.cpp
@@ -38,13 +38,6 @@ HttpRequest::~HttpRequest()
{
}
-RefPtr<Core::NetworkJob> HttpRequest::schedule()
-{
- auto job = HttpJob::construct(*this);
- job->start();
- return job;
-}
-
String HttpRequest::method_name() const
{
switch (m_method) {
diff --git a/Libraries/LibHTTP/HttpRequest.h b/Libraries/LibHTTP/HttpRequest.h
index 488630dad1..7ef91d9968 100644
--- a/Libraries/LibHTTP/HttpRequest.h
+++ b/Libraries/LibHTTP/HttpRequest.h
@@ -67,8 +67,6 @@ public:
String method_name() const;
ByteBuffer to_raw_request() const;
- RefPtr<Core::NetworkJob> schedule();
-
void set_headers(const HashMap<String, String>&);
static Optional<HttpRequest> from_raw_request(const ByteBuffer&);