17 class ResponseHandler;
24 void onRequest(std::unique_ptr<proxygen::HTTPMessage> headers)
27 void onBody(std::unique_ptr<folly::IOBuf> body) noexcept
override;
29 void onEOM() noexcept
override;
33 void requestComplete() noexcept
override;
37 void onEgressPaused() noexcept
override;
39 void onEgressResumed() noexcept
override;
43 bool checkForCompletion();
45 std::unique_ptr<folly::File>
file_;
46 bool readFileScheduled_{
false};
47 std::atomic<bool> paused_{
false};
48 bool finished_{
false};
bool readFile(int fd, Container &out, size_t num_bytes=std::numeric_limits< size_t >::max())
requires E e noexcept(noexcept(s.error(std::move(e))))
std::unique_ptr< folly::File > file_