Package io.vertx.mutiny.ext.web.handler
Class ResponseTimeHandler
- java.lang.Object
-
- io.vertx.mutiny.ext.web.handler.ResponseTimeHandler
-
- All Implemented Interfaces:
io.vertx.core.Handler<RoutingContext>
,PlatformHandler
,Consumer<RoutingContext>
public class ResponseTimeHandler extends Object implements PlatformHandler, io.vertx.core.Handler<RoutingContext>, Consumer<RoutingContext>
Handler which adds a header `x-response-time` in the response of matching requests containing the time taken in ms to process the request. NOTE: This class has been automatically generated from theoriginal
non Mutiny-ified interface using Vert.x codegen.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeArg<ResponseTimeHandler>
__TYPE_ARG
-
Constructor Summary
Constructors Constructor Description ResponseTimeHandler(io.vertx.ext.web.handler.ResponseTimeHandler delegate)
ResponseTimeHandler(Object delegate)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(RoutingContext item)
static ResponseTimeHandler
create()
boolean
equals(Object o)
io.vertx.ext.web.handler.ResponseTimeHandler
getDelegate()
void
handle(RoutingContext arg0)
int
hashCode()
static ResponseTimeHandler
newInstance(io.vertx.ext.web.handler.ResponseTimeHandler arg)
String
toString()
-
-
-
Field Detail
-
__TYPE_ARG
public static final TypeArg<ResponseTimeHandler> __TYPE_ARG
-
-
Constructor Detail
-
ResponseTimeHandler
public ResponseTimeHandler(io.vertx.ext.web.handler.ResponseTimeHandler delegate)
-
ResponseTimeHandler
public ResponseTimeHandler(Object delegate)
-
-
Method Detail
-
getDelegate
public io.vertx.ext.web.handler.ResponseTimeHandler getDelegate()
- Specified by:
getDelegate
in interfacePlatformHandler
-
handle
public void handle(RoutingContext arg0)
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfacePlatformHandler
-
create
public static ResponseTimeHandler create()
- Returns:
- the handler
-
accept
public void accept(RoutingContext item)
- Specified by:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfacePlatformHandler
-
newInstance
public static ResponseTimeHandler newInstance(io.vertx.ext.web.handler.ResponseTimeHandler arg)
-
-