-
Notifications
You must be signed in to change notification settings - Fork 3
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
Simple HTTP(S) request interface and UserAgents #23
Comments
Maybe related: curl.html |
Should this call configure a circuit that'll live in a singleton stored somewhere in a global variable or configure a short-lived circuit that'll die after a single use? Rephrasing: should next calls to I'm in favor of the first case and I don't think that it'll be far harder to implement (with a simple rebuild-on-failure policy if the channel die at some point). |
I saw About the circuit reuse, I'm inclined not to do that by default (but I'm willing to be persuaded ;)), but maybe we could do something like:
I would be inclined to avoid too much hidden state in general. |
Yes, I'm in favor of such two-step workflows: first create a connection, then apply operations on it. |
It could be nice if we have a somewhat higher HTTP/AJAX request interface. Maybe something similar to the jquery.get interface:
This function should also set a sane default for the user agent. What? Optionally make user agent configurable.
The text was updated successfully, but these errors were encountered: