mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-24 02:23:41 +08:00
35 lines
985 B
Dart
35 lines
985 B
Dart
// This file is automatically generated, so please do not edit it.
|
|
// Generated by `flutter_rust_bridge`@ 2.3.0.
|
|
|
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
|
|
|
import '../frb_generated.dart';
|
|
import '../http_package.dart';
|
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
|
|
|
// These functions are ignored because they are not marked as `pub`: `_my_method_to_hyper_method`
|
|
|
|
Future<void> setDefaultHeader({required Map<String, String> headers}) =>
|
|
RustLib.instance.api.crateApiHttpApiSetDefaultHeader(headers: headers);
|
|
|
|
Future<RustHttpResponse> fetch(
|
|
{required MyMethod method,
|
|
required String url,
|
|
Map<String, String>? headers,
|
|
Uint8List? inputData}) =>
|
|
RustLib.instance.api.crateApiHttpApiFetch(
|
|
method: method, url: url, headers: headers, inputData: inputData);
|
|
|
|
enum MyMethod {
|
|
options,
|
|
gets,
|
|
post,
|
|
put,
|
|
delete,
|
|
head,
|
|
trace,
|
|
connect,
|
|
patch,
|
|
;
|
|
}
|