dio_web_adapter 1.0.0 dio_web_adapter: ^1.0.0 copied to clipboard
An adapter that supports Dio on Web.
import 'package:dio/dio.dart';
import 'package:dio_web_adapter/dio_web_adapter.dart';
void main() {
final dio = Dio();
dio.httpClientAdapter = BrowserHttpClientAdapter(withCredentials: true);
dio.interceptors.add(LogInterceptor());
dio.get('https://httpbun.com/status/200');
}