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

Partial reception of big request bodies #177

Open stephenaa opened 1 year ago

stephenaa commented 1 year ago

Is there a quick way to provide a handler to be called on reception of smaller parts of a request body? Like a handler/lambda to be called for each 100Kb or so.

This handler could then save each part received to disk, and thus avoid to have a handler that is called with the received request in its entirety.

The use case is to use restinio to also serve an endpoint that can be provided a large file for purposes like software upgrade.

eao197 commented 1 year ago

Hi!

Sorry, but no. The current version of RESTinio doesn't support processing of partially loaded incoming requests. Such a functionality is in plans for the next version of RESTinio, but the development of the project is on hold now. We're fixing issues, answer questions, provide some help... But have to resources to add new functionality to RESTinio at the moment.