From 8f00640dd51da00c8ca09f29bca0a2b32c553925 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Wed, 23 Feb 2022 22:17:46 +0300 Subject: [PATCH] Update custom middleware documentation Add a section with link to the repo with template. --- docs/middleware/custom.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/middleware/custom.md b/docs/middleware/custom.md index 2f8766413..48e1ad141 100644 --- a/docs/middleware/custom.md +++ b/docs/middleware/custom.md @@ -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.