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.15k stars 93 forks source link

Set handle_request_timeout per route #180

Open fdgStilla opened 1 year ago

fdgStilla commented 1 year ago

I have REST server with some route that are supposed to respond very quickly and some endpoint that take a long time to respond (typically generating, processing and uploading a big file).

Is it possible to set the handle_request_timeout per route instead of setting it for all the routes ?

eao197 commented 1 year ago

Hi!

No, the current design doesn't allow this.

fdgStilla commented 1 year ago

Ok thanks for the answer

eao197 commented 1 year ago

You give us an interesting idea. I've reopened this issue to come back to it when we have time to add something new to the RESTinio.