# Class CAHTTPRequestTimeFilter

java.lang.Object
com.io7m.cardant.server.http.CAHTTPRequestTimeFilter

All Implemented Interfaces:
  `io.helidon.webserver.http.Filter, io.helidon.webserver.ServerLifecycle`

public final class CAHTTPRequestTimeFilter extends Object implements io.helidon.webserver.http.Filter
A filter that tracks request times.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CAHTTPRequestTimeFilter(CAMetricsServiceType inMetrics, CAServerClock inClock)`
  A filter that tracks request times.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `filter(io.helidon.webserver.http.FilterChain chain, io.helidon.webserver.http.RoutingRequest req, io.helidon.webserver.http.RoutingResponse res)`
  `String`
  `toString()`

  ### Methods inherited from class Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

  ### Methods inherited from interface io.helidon.webserver.ServerLifecycle

  `afterStart, afterStop, beforeStart`

- ## Constructor Details

  - ### CAHTTPRequestTimeFilter

    public CAHTTPRequestTimeFilter(CAMetricsServiceType inMetrics, CAServerClock inClock)
    A filter that tracks request times.
    Parameters:
      `inMetrics` - The metrics
      `inClock` - The clock

- ## Method Details

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### filter

    public void filter(io.helidon.webserver.http.FilterChain chain, io.helidon.webserver.http.RoutingRequest req, io.helidon.webserver.http.RoutingResponse res)
    Specified by:
      `filter` in interface `io.helidon.webserver.http.Filter`