9 Commits

Author SHA1 Message Date
Toby Lawrence
74e925d2c8
chore: fix spelling errors (#775)
Co-authored-by: Dirk Stolle <striezel-dev@web.de>
2024-07-21 12:36:46 -04:00
Eric Crosson
39adf5c509
docs: fix grammar (#749)
This commit uses the correct form of "it's".

"Its" is possessive describes a noun, while "it's" is a contraction that
is short for "it is". Since "ready" is not a noun, we must use the
contraction in this case.

In addition, this commit adds some missing commas.

Co-authored-by: Eliza Weisman <eliza@buoyant.io>
2023-11-06 21:27:25 +00:00
Jeffrey Hutchins
74881d5311
Copy editing building-a-middleware-from-scratch.md (#718) 2023-01-31 19:42:19 +01:00
Frederik Haaning
6f3050614f
timeout: fix typo in docs (#711) 2022-12-01 11:06:11 -05:00
JJ Ferman
387d2844b7
Updating generic to be consistent (#710) 2022-11-09 08:02:13 +01:00
David Pedersen
77760198f1
docs: add "Building a middleware from scratch" guide (#590)
This adds a guide that explains how to implement a middleware from scratch without taking any shortcuts. It walks through implementing `Timeout` as it exists in Tower today.

The hope is that once users have read [the previous guide](https://tokio.rs/blog/2021-05-14-inventing-the-service-trait) followed by this one they should be fully equipped to implement their own middleware.
2021-06-07 11:06:30 +02:00
David Pedersen
ce2f031523
docs: guide moved to tokio.rs (#588) 2021-05-18 14:35:19 +02:00
David Pedersen
31d5a6652a
Fix a couple of typos in the guide (#586) 2021-05-17 19:36:04 +02:00
David Pedersen
5e0c8da260
docs: Add "Inventing the Service trait" guide (#585)
This adds the first Tower guide called "Inventing the `Service` trait". It attempts to motivate all the parts to `Service` by walking the user through how they could have invented `Service` themselves, from scratch. It goes into quite a bit of detail but hopefully it paints a somewhat complete picture in the end.

The next guide I want to write is about how to implement a proper `Timeout` middleware using `Layer`, pin-project, and all the bells and whistles.

Ref: https://github.com/tower-rs/tower/issues/33
2021-05-14 22:59:43 +02:00