mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-08 00:03:41 -04:00
The downside is, middleware can't be modified after making the first request: conn.use MyMiddleware # => OK conn.get('/') conn.use AnotherMiddleware # => raises a Builder::StackLocked error On the plus side, the middleware stack is built only once and then cached as the Connection#app object. The Connection instance can always be "forked off" with the `dup` method and modified as if it were fresh.