the configured HttpRouter
the configured server com.twitter.finatra.jackson.ScalaObjectMapper
Send a request to warmup services that are not yet externally receiving traffic.
Send a request to warmup services that are not yet externally receiving traffic.
the com.twitter.finagle.http.Request to send.
if the request should be sent to a route that is intended to be exposed on the TwitterServer HTTP admin interface.
the number of times to send the request.
a callback called for every response where assertions can be made.
be aware that in the response callback, failed assertions that throw exceptions could prevent a server from starting. This is generally when dependent services are unresponsive, causing the warm-up request(s) to fail. As such, you should wrap your warm-up calls in these situations in a try/catch {}.
http://twitter.github.io/finatra/user-guide/http/controllers.html#admin-paths
http://twitter.github.io/finatra/user-guide/http/controllers.html#controllers-and-routing
(Since version 2018-03-20) This is now a no-op.
A utility for performing requests to endpoints defined by a configured HttpRouter for the purpose of warming up the
HttpServer
.This only provides routing to user-defined routes of the configured HttpRouter.
HttpRouter