| 904 | co_return td::Unit(); |
| 905 | } |
| 906 | void BaseRunner::http_send_static_answer(td::int32 code, std::string text, |
| 907 | std::unique_ptr<http::HttpRequestCallback> answer_callback, |
| 908 | std::string content_type) { |
| 909 | CHECK(answer_callback); |
| 910 | static const std::vector<std::pair<std::string, std::string>> headers{ |
| 911 | {"Access-Control-Allow-Origin", "*"}, |
| 912 | {"Access-Control-Allow-Methods", "GET, POST, OPTIONS"}, |
| 913 | {"Access-Control-Allow-Headers", "Content-Type, Authorization"}}; |
| 914 | answer_callback->receive_answer(code, content_type, headers, std::move(text), true); |
| 915 | } |
| 916 | |
| 917 | void BaseRunner::http_send_static_answer(td::Result<td::BufferSlice> R, |
| 918 | std::unique_ptr<http::HttpRequestCallback> answer_callback, |
nothing calls this directly
no test coverage detected