Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[REQ][rust] Trait based implementation for reqwest #11319

Open
Anakael opened this issue Jan 14, 2022 · 2 comments
Open

[REQ][rust] Trait based implementation for reqwest #11319

Anakael opened this issue Jan 14, 2022 · 2 comments

Comments

@Anakael
Copy link
Contributor

Anakael commented Jan 14, 2022

Is your feature request related to a problem? Please describe.

Trait based API is much more convenient than functions-based.

Describe the solution you'd like

Introduce traits and structs for API methods in reqwest implementation as it realized in hyper implementation.

@ranger-ross
Copy link
Contributor

Hello,

I am very interested in this. Would the maintainer be willing to accept a PR for this?

Given that it's a pretty big change to the public api of libraries previously generated, it should probably be its own sub-template.

@wing328
Copy link
Member

wing328 commented Oct 5, 2024

I am very interested in this. Would the maintainer be willing to accept a PR for this?

yes please

one way is to add another library (e.g. reqwest-trait) to support this

or you can create a separate generator (e.g. RustTrailtClientCodegen)

let me know if you need any help

thanks in advance for your contribution

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants