I want to compute the HMAC of an InputStream and then give that HMAC as a header in an HTTP request and the stream as the body. Is this even possible? inputFoldM seems promising, but I cannot get the seed value before the stream has been consumed by sending the body (which I need because I need it as a header).