-
Notifications
You must be signed in to change notification settings - Fork 366
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
Documentation cleanup #132
Conversation
donny-dont
commented
Oct 26, 2017
- Remove docs from overridden methods.
- Remove references to old functionality.
- Use 1 line description.
lib/browser_client.dart
Outdated
/// a response will only be returned once all the data is available. | ||
/// This client inherits some of the limitations of XMLHttpRequest. It is | ||
/// unable to directly set some headers, such as `content-length`. There is no | ||
/// way to create a persistent connection. Redirects cannot be handled directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just remove the sentences about persistent connections and redirects.
lib/http.dart
Outdated
@@ -28,7 +28,8 @@ export 'src/response.dart'; | |||
/// the request is complete. If you're planning on making multiple requests to | |||
/// the same server, you should use a single [Client] for all of those requests. | |||
/// | |||
/// For more fine-grained control over the request, use [Request] instead. | |||
/// For more fine-grained control over the request and response, create a | |||
/// [Client] and use it directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that these methods support streaming requests and responses, I don't think we need these notes anymore.
lib/src/base_client.dart
Outdated
/// get various convenience methods for free. | ||
/// The abstract base class for an HTTP client. | ||
/// | ||
/// This is a mixin-style class; subclasses only need to implement [send] and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Mixin-style" is confusing now that Dart has actual mixins. I'd just remove that bit.