-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client -> RequestBuilder with a user-provided Method? #260
Comments
I've run into this as well and think that we can do better than |
@jbr Moreover, I think that's not the same thing because of the whole |
That's true — it diverges if you're using base_url |
I agree, this appears to be an oversight. I'd take a pr for |
Note: once the change described in #237 is made, this would probably change to:
Since |
Hey! Let me know if #308 is the intended function we want to add. |
Done in #308 |
It looks like this has been oversought. How do you create a
RequestBuilder
from aClient
(which may have a base url and the corresponding url logic) if you have aMethod
and an url?Maybe something like
client.request(Method::Get, "foo")
would be worthwhile adding?(There's
Client::send()
, but perhaps there might be a more ergonomic option)The text was updated successfully, but these errors were encountered: