Tectu / malloy

A cross-platform C++20 library providing embeddable server & client components for HTTP and WebSocket.
BSD 3-Clause "New" or "Revised" License
68 stars 8 forks source link

Non string_body responses #13

Closed 0x00002a closed 3 years ago

0x00002a commented 3 years ago

Currently there is no way to have non string_body responses. This is an issue for file serving for example, with multi-GB files it is infeasible to load them into a string before sending. The ideal usage imo would be to have the regex route handler allow returning any response with a valid body. No idea how to actually implement it though :p