tower-http icon indicating copy to clipboard operation
tower-http copied to clipboard

Add an example for a Client

Open markdingram opened this issue 3 years ago • 1 comments

Feature Request

There's some nice setup for a Client over in https://github.com/EmbarkStudios/cloud-dns . Would you be amenable to a port into this repo as an example to make this approach more discoverable?

Motivation

Trying to use a Service with TraceLayer and running into excessive generic typing, until discovering the approach in the linked repo. An example here would have saved some time.

Proposal

Alternatives

Are you happy with that approach to make it more "official" by putting in this repo?

markdingram avatar Aug 11 '22 08:08 markdingram

We already have a small example client here. The main thing missing is boxing it so its easier to name the type, without having to spell out the large type. Thats probably what you ran into.

But I'm fine with adding a dedicated example as well!

davidpdrsn avatar Aug 11 '22 09:08 davidpdrsn