Package io.vertx.mutiny.ext.web.handler
Class ResponseTimeHandler
java.lang.Object
io.vertx.mutiny.ext.web.handler.ResponseTimeHandler
- All Implemented Interfaces:
MutinyDelegate
,io.vertx.core.Handler<RoutingContext>
,PlatformHandler
,Consumer<RoutingContext>
public class ResponseTimeHandler
extends Object
implements MutinyDelegate, 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 the
original
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResponseTimeHandler
(io.vertx.ext.web.handler.ResponseTimeHandler delegate) ResponseTimeHandler
(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(RoutingContext item) static ResponseTimeHandler
create()
boolean
io.vertx.ext.web.handler.ResponseTimeHandler
void
handle
(RoutingContext arg0) int
hashCode()
static ResponseTimeHandler
newInstance
(io.vertx.ext.web.handler.ResponseTimeHandler arg) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
ResponseTimeHandler
public ResponseTimeHandler(io.vertx.ext.web.handler.ResponseTimeHandler delegate) -
ResponseTimeHandler
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.handler.ResponseTimeHandler getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Specified by:
getDelegate
in interfacePlatformHandler
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
handle
- Specified by:
handle
in interfaceio.vertx.core.Handler<RoutingContext>
- Specified by:
handle
in interfacePlatformHandler
-
create
- Returns:
- the handler
-
accept
- Specified by:
accept
in interfaceConsumer<RoutingContext>
- Specified by:
accept
in interfacePlatformHandler
-
newInstance
-