Provides ways to wrap a route or request-response handler in a new handler which also streams pairs of enriched request and response to an access log sink:
+------------------------------------------------------------------------------------+
| |
| +-----------+ +-----------+ +-----------+ +-----------+ |
| +--->○ enrichReq ○----->○ unzip ○----->○ handler ○----->○ bcastRes ○--+ |
| | +-----------+ +-----○-----+ +-----------+ +-----------+ | |
| | | | | |
○---+ | | +-->○
| v | |
| +-----------+ +-----○-----+ | |
| | accessLog ○<-----○ zip ○<------------------------------+ |
| +-----------+ +-----------+ |
| |
+------------------------------------------------------------------------------------+
Contributions via GitHub pull requests are gladly accepted from their original author. Along with any pull requests, please state that the contribution is your original work and that you license the work to the project under the project's open source license. Whether or not you state this explicitly, by submitting any copyrighted material via pull request, email, or other means you agree to license the material under the project's open source license and warrant that you have the legal authority to do so.
This code is open source software licensed under the Apache-2.0 license.