| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Ecluse.Core.Registry.Exchange.Observe
Description
Observe HTTP attempts without taking ownership of their responses. Callers admit local work first and report headers before consuming the body. Attempt notification precedes header writes and does not prove remote receipt. Connection failures can occur before that notification. The injected recorder must not throw.
Synopsis
- data ExchangeOutcome
- observeExchange :: (ExchangeOutcome -> IO ()) -> Request -> (Request -> (Status -> IO ()) -> IO a) -> IO a
Documentation
data ExchangeOutcome Source #
A response status or an interruption before response headers arrive.
Constructors
| ResponseStatus Int | |
| TransportFailure | |
| Cancelled |
Instances
| Show ExchangeOutcome Source # | |
Defined in Ecluse.Core.Telemetry.Upstream Methods showsPrec :: Int -> ExchangeOutcome -> ShowS # show :: ExchangeOutcome -> String # showList :: [ExchangeOutcome] -> ShowS # | |
| Eq ExchangeOutcome Source # | |
Defined in Ecluse.Core.Telemetry.Upstream Methods (==) :: ExchangeOutcome -> ExchangeOutcome -> Bool # (/=) :: ExchangeOutcome -> ExchangeOutcome -> Bool # | |