dart-lang / dart-lang/http

Readme improvement

Open
#242 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
1.1k
Forks
419
Avg merge
4d 14h
Merged PRs (30d)
8

Description

In this example in first line we extends BaseClient with http namespace,
but later we use StreamedResponse and BaseRequest without namespace.
So I think it's better to add http prefix to them too.
```
class UserAgentClient extends http.BaseClient {
final String userAgent;
final http.Client _inner;

UserAgentClient(this.userAgent, this._inner);

Future send(BaseRequest request) {
request.headers['user-agent'] = userAgent;
return _inner.send(request);
}
}
```

Contributor guide

Open the contributing guide

Research direction

Find the README example containing the UserAgentClient code shown in the issue and compare its namespace usage. Update StreamedResponse and BaseRequest to use the http prefix, then verify the example remains valid Dart code.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.