Skip to content

Commit

Permalink
Update custom middleware documentation
Browse files Browse the repository at this point in the history
Add a section with link to the repo with template.
  • Loading branch information
AlexWayfer authored and olleolleolle committed Feb 23, 2022
1 parent fc11225 commit 8f00640
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/middleware/custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ For the majority of middleware, it's not necessary to override the `#call` metho

However, in some cases you may need to wrap the call in a block, or work around it somehow (think of a begin-rescue, for example).
When that happens, then you can override `#call`. When you do so, remember to call either `app.call(env)` or `super` to avoid breaking the middleware stack call!

### Can I find a middleware template somewhere?

Yes, you can! Look at the [`faraday-middleware-template`](https://github.com/lostisland/faraday-middleware-template) repository.

0 comments on commit 8f00640

Please sign in to comment.