This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:dio/dio.dart'; | |
import 'package:flutter_bili_app/http/core/hi_adapter.dart'; | |
import 'package:flutter_bili_app/http/core/hi_error.dart'; | |
import 'package:flutter_bili_app/http/request/base_request.dart'; | |
/// Dio 適配器 | |
class DioAdapter extends HiNetAdapter { | |
@override | |
Future<HiNetResponse<T>> send<T>(BaseRequest request) async { | |
var response, options = Options(headers: request.header); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |