Class HttpRequestTerminatedEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class HttpRequestTerminatedEvent
    extends io.micronaut.context.event.ApplicationEvent
    An event fired when an HttpRequest is finalized by the server. Note that the event is fired asynchronously and consumers of the event should generally not perform I/O, instead this designed for tracing of headers, URI etc.
    Since:
    1.2.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpRequest<?> getSource()  
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • HttpRequestTerminatedEvent

        public HttpRequestTerminatedEvent​(@NonNull
                                          HttpRequest<?> request)
        Parameters:
        request - The request. Never null.
    • Method Detail

      • getSource

        @NonNull
        public HttpRequest<?> getSource()
        Overrides:
        getSource in class java.util.EventObject