|
2 | 2 | // Licensed under the Apache 2.0 License. |
3 | 3 | #pragma once |
4 | 4 |
|
5 | | -#include "ccf/http_responder.h" |
6 | 5 | #include "ccf/odata_error.h" |
7 | 6 | #include "ccf/rpc_context.h" |
8 | 7 | #include "ds/actors.h" |
@@ -49,8 +48,6 @@ namespace http |
49 | 48 |
|
50 | 49 | std::vector<uint8_t> request_body; |
51 | 50 |
|
52 | | - std::shared_ptr<ccf::http::HTTPResponder> responder = nullptr; |
53 | | - |
54 | 51 | std::vector<uint8_t> serialised_request; |
55 | 52 |
|
56 | 53 | ccf::http::HeaderMap response_headers; |
@@ -99,14 +96,12 @@ namespace http |
99 | 96 | const std::string_view& url_, |
100 | 97 | ccf::http::HeaderMap headers_, |
101 | 98 | const std::vector<uint8_t>& body_, |
102 | | - const std::shared_ptr<ccf::http::HTTPResponder>& responder_ = nullptr, |
103 | 99 | const std::vector<uint8_t>& raw_request_ = {}) : |
104 | 100 | RpcContextImpl(s, http_version), |
105 | 101 | verb(verb_), |
106 | 102 | url(url_), |
107 | 103 | request_headers(std::move(headers_)), |
108 | 104 | request_body(body_), |
109 | | - responder(responder_), |
110 | 105 | serialised_request(raw_request_) |
111 | 106 | { |
112 | 107 | const auto [path_, query_, fragment_] = split_url_path(url); |
@@ -202,12 +197,6 @@ namespace http |
202 | 197 | return url; |
203 | 198 | } |
204 | 199 |
|
205 | | - [[nodiscard]] std::shared_ptr<ccf::http::HTTPResponder> get_responder() |
206 | | - const override |
207 | | - { |
208 | | - return responder; |
209 | | - } |
210 | | - |
211 | 200 | template <typename T> |
212 | 201 | void _set_response_body(T&& body) |
213 | 202 | { |
@@ -396,7 +385,6 @@ namespace ccf |
396 | 385 | msg.url, |
397 | 386 | msg.headers, |
398 | 387 | msg.body, |
399 | | - nullptr, |
400 | 388 | packed); |
401 | 389 | } |
402 | 390 |
|
|
0 commit comments