Implements a custom dart cookie implementation to supersede the existing one from dart:io package. The reasons for this are to due with RFC compliance, performance and flexibility.
The dart:io implementation performs unnecessary validation and parsing. Since cookies originate direcrtly from webview cookie managers, validation is completely unnecessary and wasteful.
The dart:io implementation does not have support for JSON serialization.
This patch additionally makes updates to the existing setCookies and clearCookies functions. Namely, the functions completely finish their operations (setting or clearing) before returning an result asynchronously. Prior to this patch, the functions returned immediately, without waiting for completion leading to race conditions.
Implements a custom dart cookie implementation to supersede the existing one from
dart:io
package. The reasons for this are to due with RFC compliance, performance and flexibility.@
symbol in a cookie name without error.dart:io
implementation performs unnecessary validation and parsing. Since cookies originate direcrtly from webview cookie managers, validation is completely unnecessary and wasteful.dart:io
implementation does not have support for JSON serialization.This patch additionally makes updates to the existing setCookies and clearCookies functions. Namely, the functions completely finish their operations (setting or clearing) before returning an result asynchronously. Prior to this patch, the functions returned immediately, without waiting for completion leading to race conditions.