diox_cookie_manager 2.1.0-dev.1 copy "diox_cookie_manager: ^2.1.0-dev.1" to clipboard
diox_cookie_manager: ^2.1.0-dev.1 copied to clipboard

discontinuedreplaced by: dio_cookie_manager
outdated

A cookie manager for Dio, which supports persistent cookies in RAM and file.

example/example.dart

import 'package:cookie_jar/cookie_jar.dart';
import 'package:diox/diox.dart';
import 'package:diox_cookie_manager/diox_cookie_manager.dart';

void main() async {
  final dio = Dio();
  final cookieJar = CookieJar();
  dio.interceptors.add(CookieManager(cookieJar));
  await dio.get('https://baidu.com/');
  // Print cookies
  print(cookieJar.loadForRequest(Uri.parse('https://baidu.com/')));
  // second request with the cookie
  await dio.get('https://baidu.com/');
}
0
likes
0
points
33
downloads

Publisher

verified publisherflutter.cn

Weekly Downloads

A cookie manager for Dio, which supports persistent cookies in RAM and file.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cookie_jar, diox

More

Packages that depend on diox_cookie_manager