dio_cookie_caching_handler

Creator: coderz1093

Last updated:

0 purchases

dio_cookie_caching_handler Image
dio_cookie_caching_handler Images

Languages

Categories

Add to Cart

Description:

dio cookie caching handler

Dio cookie handler/manager. #
Manager Dio Cookies in non web environments.
Features #

Stores cookies in single file when changed
Keep cookies in memory to provide when needed
Supports Expires, Max-Age attributes.
No Other attribute support.
Cookies loaded from file when needed. No Async/Await setup needed

Getting started #
pubspec.yaml
dependencies:
dio_cookie_caching_handler: ^0.0.7
copied to clipboard
Run this command
flutter pub get
copied to clipboard
Usage #
Setup:
import 'package:dio/dio.dart';
import 'package:dio_cookie_caching_handler/dio_cookie_caching_handler.dart';
import 'package:flutter/foundation.dart';

final dio = Dio();
if (!kIsWeb) {
dio.interceptors.add(cookieCachedHandler());
}
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.