Interface FlightClientMiddleware

All Known Implementing Classes:
ClientCookieMiddleware, ClientIncomingAuthHeaderMiddleware

public interface FlightClientMiddleware
Client-side middleware for Flight.

Middleware are instantiated per-call and should store state in the middleware instance.

  • Method Details

    • onBeforeSendingHeaders

      void onBeforeSendingHeaders(CallHeaders outgoingHeaders)
      A callback used before request headers are sent. The headers may be manipulated.
    • onHeadersReceived

      void onHeadersReceived(CallHeaders incomingHeaders)
      A callback called after response headers are received. The headers may be manipulated.
    • onCallCompleted

      void onCallCompleted(CallStatus status)
      A callback called after the call completes.