Middleware that adds hash of apidoc into response headers