Interface HttpLifecycleObserver.HttpExchangeObserver

All Known Subinterfaces:
GrpcLifecycleObserver.GrpcExchangeObserver
Enclosing interface:
HttpLifecycleObserver

public static interface HttpLifecycleObserver.HttpExchangeObserver
An observer interface that provides visibility into events associated with a single HTTP exchange.

An exchange is represented by a request and a response. Both can be observed independently and may publish their events concurrently because connections are full-duplex. The terminal event for the exchange is signaled only when nested observers signal terminal events. Cancellation is the best effort, more events may be signaled after cancel.