dio_web_adapter 1.0.0 copy "dio_web_adapter: ^1.0.0" to clipboard
dio_web_adapter: ^1.0.0 copied to clipboard

An adapter that supports Dio on Web.

example/main.dart

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');
}