Skip to content
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

Merged
merged 2 commits into from
Oct 26, 2017
Merged

Documentation cleanup #132

merged 2 commits into from
Oct 26, 2017

Conversation

donny-dont
Copy link

  • Remove docs from overridden methods.
  • Remove references to old functionality.
  • Use 1 line description.

/// 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.
Copy link
Member

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.
Copy link
Member

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.

/// 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
Copy link
Member

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.

@nex3 nex3 merged commit fc32f51 into dart-lang:master Oct 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants