Stiffstream / restinio

Cross-platform, efficient, customizable, and robust asynchronous HTTP(S)/WebSocket server C++ library with the right balance between performance and ease of use
Other
1.13k stars 93 forks source link

New overload for sendfile and std::filesystem::path? #200

Closed eao197 closed 6 months ago

eao197 commented 7 months ago

There are several overloads of sendfile function, but all of them are from C++14 era. Since C++17 there is std::filesystem::path for representing filenames.

It seems that there should be another overload of sendfile function that accepts std::filesystem::path object.