mirror of
https://github.com/dart-lang/sdk
synced 2024-10-04 16:14:50 +00:00
Add HTTP access control headers to CHANGELOG and add @Since
.
Change-Id: I860fbe6b821061695c50319204d8d6ba9c98a839 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/209109 Auto-Submit: Lasse R.H. Nielsen <lrn@google.com> Commit-Queue: Kevin Moore <kevmoo@google.com> Reviewed-by: Kevin Moore <kevmoo@google.com>
This commit is contained in:
parent
04c44e8e67
commit
ae1e2bd3a6
|
@ -82,6 +82,7 @@
|
||||||
- `convertNativeToDart_Dictionary()` now converts objects recursively, this
|
- `convertNativeToDart_Dictionary()` now converts objects recursively, this
|
||||||
fixes APIs like MediaStreamTrack.getCapabilities that convert between Maps and
|
fixes APIs like MediaStreamTrack.getCapabilities that convert between Maps and
|
||||||
browser Dictionaries. [#44319]
|
browser Dictionaries. [#44319]
|
||||||
|
- Added some access-control HTTP header names to `HttpHeaders`.
|
||||||
|
|
||||||
[#44319]: https://github.com/dart-lang/sdk/issues/44319
|
[#44319]: https://github.com/dart-lang/sdk/issues/44319
|
||||||
|
|
||||||
|
@ -90,6 +91,7 @@
|
||||||
- BREAKING CHANGE (for pre-migrated null safe code): `HttpClient`'s
|
- BREAKING CHANGE (for pre-migrated null safe code): `HttpClient`'s
|
||||||
`.authenticate` and `.authenticateProxy` setter callbacks must now accept a
|
`.authenticate` and `.authenticateProxy` setter callbacks must now accept a
|
||||||
nullable `realm` argument.
|
nullable `realm` argument.
|
||||||
|
- Added some access-control HTTP header names to `HttpHeaders`.
|
||||||
|
|
||||||
#### `dart:typed_data`
|
#### `dart:typed_data`
|
||||||
|
|
||||||
|
|
|
@ -170,8 +170,8 @@ Evaluated: MapLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 ->
|
||||||
Evaluated: SymbolLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> SymbolConstant(#noFolding)
|
Evaluated: SymbolLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> SymbolConstant(#noFolding)
|
||||||
Evaluated: ListLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> ListConstant(const <Type*>[])
|
Evaluated: ListLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> ListConstant(const <Type*>[])
|
||||||
Evaluated: MapLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
|
Evaluated: MapLiteral @ org-dartlang-testcase:///mock_http_headers.dart:13:7 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
|
||||||
Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:774:8 -> SymbolConstant(#clear)
|
Evaluated: SymbolLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:782:8 -> SymbolConstant(#clear)
|
||||||
Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:774:8 -> ListConstant(const <Type*>[])
|
Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:782:8 -> ListConstant(const <Type*>[])
|
||||||
Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:774:8 -> ListConstant(const <dynamic>[])
|
Evaluated: ListLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:782:8 -> ListConstant(const <dynamic>[])
|
||||||
Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:774:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
|
Evaluated: MapLiteral @ org-dartlang-sdk:///sdk/lib/_http/http.dart:782:8 -> InstanceConstant(const _ImmutableMap<Symbol*, dynamic>{_ImmutableMap._kvPairs: const <dynamic>[]})
|
||||||
Extra constant evaluation: evaluated: 268, effectively constant: 91
|
Extra constant evaluation: evaluated: 268, effectively constant: 91
|
||||||
|
|
|
@ -391,16 +391,24 @@ abstract class HttpHeaders {
|
||||||
static const acceptEncodingHeader = "accept-encoding";
|
static const acceptEncodingHeader = "accept-encoding";
|
||||||
static const acceptLanguageHeader = "accept-language";
|
static const acceptLanguageHeader = "accept-language";
|
||||||
static const acceptRangesHeader = "accept-ranges";
|
static const acceptRangesHeader = "accept-ranges";
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlAllowCredentialsHeader =
|
static const accessControlAllowCredentialsHeader =
|
||||||
'access-control-allow-credentials';
|
'access-control-allow-credentials';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlAllowHeadersHeader = 'access-control-allow-headers';
|
static const accessControlAllowHeadersHeader = 'access-control-allow-headers';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlAllowMethodsHeader = 'access-control-allow-methods';
|
static const accessControlAllowMethodsHeader = 'access-control-allow-methods';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlAllowOriginHeader = 'access-control-allow-origin';
|
static const accessControlAllowOriginHeader = 'access-control-allow-origin';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlExposeHeadersHeader =
|
static const accessControlExposeHeadersHeader =
|
||||||
'access-control-expose-headers';
|
'access-control-expose-headers';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlMaxAgeHeader = 'access-control-max-age';
|
static const accessControlMaxAgeHeader = 'access-control-max-age';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlRequestHeadersHeader =
|
static const accessControlRequestHeadersHeader =
|
||||||
'access-control-request-headers';
|
'access-control-request-headers';
|
||||||
|
@Since("2.14")
|
||||||
static const accessControlRequestMethodHeader =
|
static const accessControlRequestMethodHeader =
|
||||||
'access-control-request-method';
|
'access-control-request-method';
|
||||||
static const ageHeader = "age";
|
static const ageHeader = "age";
|
||||||
|
@ -2315,7 +2323,9 @@ class HttpException implements IOException {
|
||||||
const HttpException(this.message, {this.uri});
|
const HttpException(this.message, {this.uri});
|
||||||
|
|
||||||
String toString() {
|
String toString() {
|
||||||
var b = new StringBuffer()..write('HttpException: ')..write(message);
|
var b = new StringBuffer()
|
||||||
|
..write('HttpException: ')
|
||||||
|
..write(message);
|
||||||
var uri = this.uri;
|
var uri = this.uri;
|
||||||
if (uri != null) {
|
if (uri != null) {
|
||||||
b.write(', uri = $uri');
|
b.write(', uri = $uri');
|
||||||
|
|
Loading…
Reference in a new issue