Skip to content

Commit 62b2dad

Browse files
Remove extra parameters from HTTP handler signature
These parameters are no longer needed since they were only used by EventsHandler which was refactored in an earlier commit.
1 parent d32f04a commit 62b2dad

35 files changed

+40
-127
lines changed

lib/remote/actionshandler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ REGISTER_URLHANDLER("/v1/actions", ActionsHandler);
1717

1818
bool ActionsHandler::HandleRequest(
1919
const WaitGroup::Ptr& waitGroup,
20-
AsioTlsStream& stream,
2120
const HttpRequest& request,
2221
HttpResponse& response,
23-
boost::asio::yield_context& yc,
24-
HttpServerConnection& server
22+
boost::asio::yield_context& yc
2523
)
2624
{
2725
namespace http = boost::beast::http;

lib/remote/actionshandler.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ class ActionsHandler final : public HttpHandler
1717

1818
bool HandleRequest(
1919
const WaitGroup::Ptr& waitGroup,
20-
AsioTlsStream& stream,
2120
const HttpRequest& request,
2221
HttpResponse& response,
23-
boost::asio::yield_context& yc,
24-
HttpServerConnection& server
22+
boost::asio::yield_context& yc
2523
) override;
2624
};
2725

lib/remote/configfileshandler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ REGISTER_URLHANDLER("/v1/config/files", ConfigFilesHandler);
1515

1616
bool ConfigFilesHandler::HandleRequest(
1717
const WaitGroup::Ptr&,
18-
AsioTlsStream& stream,
1918
const HttpRequest& request,
2019
HttpResponse& response,
21-
boost::asio::yield_context& yc,
22-
HttpServerConnection& server
20+
boost::asio::yield_context& yc
2321
)
2422
{
2523
namespace http = boost::beast::http;

lib/remote/configfileshandler.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ class ConfigFilesHandler final : public HttpHandler
1515

1616
bool HandleRequest(
1717
const WaitGroup::Ptr& waitGroup,
18-
AsioTlsStream& stream,
1918
const HttpRequest& request,
2019
HttpResponse& response,
21-
boost::asio::yield_context& yc,
22-
HttpServerConnection& server
20+
boost::asio::yield_context& yc
2321
) override;
2422
};
2523

lib/remote/configpackageshandler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,9 @@ REGISTER_URLHANDLER("/v1/config/packages", ConfigPackagesHandler);
1313

1414
bool ConfigPackagesHandler::HandleRequest(
1515
const WaitGroup::Ptr&,
16-
AsioTlsStream& stream,
1716
const HttpRequest& request,
1817
HttpResponse& response,
19-
boost::asio::yield_context& yc,
20-
HttpServerConnection& server
18+
boost::asio::yield_context& yc
2119
)
2220
{
2321
namespace http = boost::beast::http;

lib/remote/configpackageshandler.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ class ConfigPackagesHandler final : public HttpHandler
1515

1616
bool HandleRequest(
1717
const WaitGroup::Ptr& waitGroup,
18-
AsioTlsStream& stream,
1918
const HttpRequest& request,
2019
HttpResponse& response,
21-
boost::asio::yield_context& yc,
22-
HttpServerConnection& server
20+
boost::asio::yield_context& yc
2321
) override;
2422

2523
private:

lib/remote/configstageshandler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ static std::mutex l_RunningPackageUpdatesMutex; // Protects the above two variab
2020

2121
bool ConfigStagesHandler::HandleRequest(
2222
const WaitGroup::Ptr&,
23-
AsioTlsStream& stream,
2423
const HttpRequest& request,
2524
HttpResponse& response,
26-
boost::asio::yield_context& yc,
27-
HttpServerConnection& server
25+
boost::asio::yield_context& yc
2826
)
2927
{
3028
namespace http = boost::beast::http;

lib/remote/configstageshandler.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ class ConfigStagesHandler final : public HttpHandler
1515

1616
bool HandleRequest(
1717
const WaitGroup::Ptr& waitGroup,
18-
AsioTlsStream& stream,
1918
const HttpRequest& request,
2019
HttpResponse& response,
21-
boost::asio::yield_context& yc,
22-
HttpServerConnection& server
20+
boost::asio::yield_context& yc
2321
) override;
2422

2523
private:

lib/remote/consolehandler.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ static void EnsureFrameCleanupTimer()
5555

5656
bool ConsoleHandler::HandleRequest(
5757
const WaitGroup::Ptr&,
58-
AsioTlsStream& stream,
5958
const HttpRequest& request,
6059
HttpResponse& response,
61-
boost::asio::yield_context& yc,
62-
HttpServerConnection& server
60+
boost::asio::yield_context& yc
6361
)
6462
{
6563
namespace http = boost::beast::http;

lib/remote/consolehandler.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ class ConsoleHandler final : public HttpHandler
2424

2525
bool HandleRequest(
2626
const WaitGroup::Ptr& waitGroup,
27-
AsioTlsStream& stream,
2827
const HttpRequest& request,
2928
HttpResponse& response,
30-
boost::asio::yield_context& yc,
31-
HttpServerConnection& server
29+
boost::asio::yield_context& yc
3230
) override;
3331

3432
static std::vector<String> GetAutocompletionSuggestions(const String& word, ScriptFrame& frame);

0 commit comments

Comments
 (0)