Skip to content

Modify context variable naming #133

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

Merged
merged 3 commits into from
Oct 31, 2017
Merged

Conversation

donny-dont
Copy link

Updated naming scheme and wrote some documentation around it.

/// [HttpRequest] values through [Request.context].
///
/// * `http.html.with_credentials` is a boolean value, defaulting to `false`
/// that corresponds to [HttpRequest.withCredentials].
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 rather document these in terms of their semantics, rather than in terms of their implementation. Talk about what setting the context variables do.

@@ -23,6 +23,12 @@ import 'src/response.dart';
/// unable to directly set some headers, such as `content-length`. It is also
/// unable to stream requests or responses; a request will only be sent and a
/// response will only be returned once all the data is available.
///
/// [BrowserClient] allows setting values directly on the underlying
/// [HttpRequest] values through [Request.context].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: "." -> ":"

@nex3 nex3 merged commit 29a0077 into dart-lang:master Oct 31, 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