-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 Make cached connections respect redirections (#2353)
The connection manager now established the transport with the given redirection record rather than reusing the previous transport.
- Loading branch information
Showing
7 changed files
with
136 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Migration Guide | ||
|
||
This document gathered all breaking changes and migrations requirement between versions. | ||
|
||
<!-- | ||
When new content need to be added to the migration guide, make sure they're following the format: | ||
1. Add a version in the *Breaking versions* section, with a version anchor. | ||
2. Use *Summary* and *Details* to introduce the migration. | ||
--> | ||
|
||
## Breaking versions | ||
|
||
- [2.6.0](#260) | ||
|
||
## 2.6.0 | ||
|
||
### Summary | ||
|
||
- `ConnectionManager.getConnection` now requires redirection records as a parameter. | ||
|
||
### Details | ||
|
||
#### `ConnectionManager.getConnection` | ||
|
||
```diff | ||
/// Get the connection(may reuse) for each request. | ||
Future<ClientTransportConnection> getConnection( | ||
RequestOptions options, | ||
+ List<RedirectRecord> redirects, | ||
); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters