/chain

Request middleware

Primary LanguageGo

Chain

Execute a series of functions, passing the request to each defined callback.

Typically used as middleware for modifying request headers, or the request responses. In addition, you can short-ciruit requests before they're sent out, and use this to define easily adaptable transports for logging / instrumentation.

Modeled off of okhttp

TODO: Add examples and documentation :-D, please use tests as a reference for now.