See this note for the mechanism description.
request-track
library provides WAI primitives to handle the passed headers. At the very least you would want to use echoMiddleware
in order to send back the tracking headers in every HTTP reply.
request-track-servant
provides combinators to use with Servant. See the haddock documentation for more info.
example-server
directory contains a simple HTTP server that uses all this stuff.