-
Notifications
You must be signed in to change notification settings - Fork 31
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
working smoothly with serialization #15
Comments
@JackStouffer what other key features of request would you highlight? |
The key thing about requests (and it's also the thing I love about std.range and std.algorithm) is that the API is so simple that you can keep the day to day stuff in your head. For example, I know without looking it up that the call to download the text of a page is
No protocol is simple, especially HTTP. But, there should be a simple high level with the ability to drop down into low level stuff, which is one of the key selling points of D. |
@JackStouffer exactly, the simple, high level API is my goal - everyday things should be done in single simple API call. This code is simple and do what you expect:
|
its already fairly simple:
it could be made even faster and nicer by allowing direct access to the buffer, see |
@JackStouffer correctly pointed out that Python's requests library should be a inspiration point (e.g. read the user testimonials for the reason).
One important feature is automatic serialization which is quite handy, so maybe we can keep this in mind that plugin a serializer / deserializer is an important use case.
The text was updated successfully, but these errors were encountered: