public class ResponseTime extends Middleware
vertx
Constructor and Description |
---|
ResponseTime() |
Modifier and Type | Method and Description |
---|---|
void |
handle(YokeRequest request,
org.vertx.java.core.Handler<java.lang.Object> next)
Handles a request.
|
isErrorHandler, setVertx
public void handle(YokeRequest request, org.vertx.java.core.Handler<java.lang.Object> next)
Middleware
handle
in class Middleware
request
- A YokeRequest which in practice is a extended HttpServerRequestnext
- The callback to inform that the next middleware in the chain should be used. A value different from
null represents an error and in that case the error handler middleware will be executed.