Pegasus HTTP Middleware