Draft: Make response extensions from reqwest::Response available in octorust::Response#98
Draft: Make response extensions from reqwest::Response available in octorust::Response#98ctsrc wants to merge 1 commit intooxidecomputer:mainfrom
Conversation
781eef4 to
d3aaa70
Compare
|
cc @augustuswm Would you guys be open to merge this sort of addition? And is directly editing |
|
So to implement something like this it would be a change to source in https://github.com/oxidecomputer/third-party-api-clients/tree/main/generator/src . This is binary that generates all of the clients. In particular I think https://github.com/oxidecomputer/third-party-api-clients/blob/main/generator/src/main.rs#L2380 is likely the starting point to look at. You can then use |
This PR makes
http::Extensionsfromreqwest::Responseavailable inoctorust::Response.This is a minimal draft that made it useable for me for my use-case.
Submitting this PR in draft state so that feedback can be provided on whether this is of interest to you guys if I add a bit more polish.
See also #97 that describes the original motivation for this PR.