mirror of
https://github.com/dart-lang/sdk
synced 2024-10-06 13:57:58 +00:00
[dart:io] format description of change in CHANGELOG
Some leftover from previous change. https://dart-review.googlesource.com/c/sdk/+/135357 Change-Id: I15b42bc36efaa0b64851d162d55fe7a695c285ee Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/136760 Commit-Queue: Zichang Guo <zichangguo@google.com> Reviewed-by: Lasse R.H. Nielsen <lrn@google.com> Reviewed-by: Jonas Termansen <sortie@google.com>
This commit is contained in:
parent
754972096f
commit
a32f1936f9
17
CHANGELOG.md
17
CHANGELOG.md
|
@ -34,13 +34,18 @@ used (see Issue [39627][]).
|
|||
valid.
|
||||
|
||||
* **Breaking change** [#33501](https://github.com/dart-lang/sdk/issues/33501):
|
||||
This is breaking only for classes extending or implementing `HttpHeaders` and
|
||||
hvaing their own `add` or `set` methods without the `bool preserveHeaderCase`
|
||||
named parameter. The signature of `add` and `set` has been changed to
|
||||
|
||||
An named parameter is added to `add` and `set` for class `HttpHeaders`.
|
||||
The signature of has been changed from `void add(String name, Object value)` to
|
||||
`void add(String name, Object value, {bool preserveHeaderCase: false})`.
|
||||
Same change is applied to `set`. `preserveHeaderCase` will preserve the
|
||||
case of `name` instead of converting them to lowercase.
|
||||
`HttpHeader.forEach()` provides the current case of each header.
|
||||
```dart
|
||||
void add(String name, Object value, {bool preserveHeaderCase: false})
|
||||
void set(String name, Object value, {bool preserveHeaderCase: false})
|
||||
```
|
||||
|
||||
Setting `preserveHeaderCase` to `true` will preserve the case of the `name`
|
||||
parameter instead of converting it to lowercase. The `HttpHeader.forEach()`
|
||||
method provides the current case of each header.
|
||||
|
||||
* **Breaking change** [#40702](https://github.com/dart-lang/sdk/issues/40702):
|
||||
The `Socket` class will now throw a `SocketException` if the socket has been
|
||||
|
|
Loading…
Reference in a new issue