Middleware for use with Faraday.