HTTP client with middleware? - Haskell

Welcome to the Functional Programming Zulip Chat Archive. You can join the chat here.

Magnus Therning

Is there an HTTP client lib that has support for something similar to WAI middlewares?

Georgi Lyubenov // googleson78

meaning something like type RequestMIddleWare = Request -> Request, which you can compose?

Magnus Therning

I was thinking something more WAI-like, so composable wrapper around the whole sending and receiving. The kind of things I'd like to do is

  • logging of both request and response
  • network tracing (XRay)