restinio icon indicating copy to clipboard operation
restinio copied to clipboard

Set handle_request_timeout per route

Open fdgStilla opened this issue 3 years ago • 3 comments

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 ?

fdgStilla avatar Apr 05 '23 13:04 fdgStilla

Hi!

No, the current design doesn't allow this.

eao197 avatar Apr 05 '23 13:04 eao197

Ok thanks for the answer

fdgStilla avatar Apr 05 '23 13:04 fdgStilla

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.

eao197 avatar Apr 05 '23 13:04 eao197