dio
This commit is contained in:
@ -1,11 +1,5 @@
|
||||
import 'package:http/http.dart' as http;
|
||||
import 'package:dio/dio.dart';
|
||||
|
||||
class HttpClient {
|
||||
HttpClient(this.header);
|
||||
|
||||
Map<String, String>? header;
|
||||
|
||||
Future post(Uri url) {
|
||||
return http.post(url);
|
||||
}
|
||||
}
|
||||
var dio = Dio(BaseOptions(
|
||||
baseUrl: "http://localhost:8080",
|
||||
));
|
||||
|
Reference in New Issue
Block a user