Is it possible to set HTTP request-response timeout in a Finatra server?
The http controller callback typically returns a Future, that once resolved the response is transmitted. I would like to define, within Finatra, how long the server should wait before returning a 500 or 400 response.
You can extend the
HttpServerand define your own timeoutthen you overwrite the
configureHttpServermethod and you define timeout, requests sites, and other attributesOr, a more minimal example in your class that extends
Http.Server: