mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 09:04:45 +08:00
update RSHttp
This commit is contained in:
51
lib/common/rust/http_package.dart
Normal file
51
lib/common/rust/http_package.dart
Normal file
@ -0,0 +1,51 @@
|
||||
// This file is automatically generated, so please do not edit it.
|
||||
// Generated by `flutter_rust_bridge`@ 2.0.0-dev.23.
|
||||
|
||||
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
||||
|
||||
import 'api/http_api.dart';
|
||||
import 'frb_generated.dart';
|
||||
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
||||
|
||||
class RustHttpResponse {
|
||||
final int statusCode;
|
||||
final Map<String, String> headers;
|
||||
final String url;
|
||||
final int? contentLength;
|
||||
final ReqwestVersion version;
|
||||
final String remoteAddr;
|
||||
final Uint8List? data;
|
||||
|
||||
const RustHttpResponse({
|
||||
required this.statusCode,
|
||||
required this.headers,
|
||||
required this.url,
|
||||
this.contentLength,
|
||||
required this.version,
|
||||
required this.remoteAddr,
|
||||
this.data,
|
||||
});
|
||||
|
||||
@override
|
||||
int get hashCode =>
|
||||
statusCode.hashCode ^
|
||||
headers.hashCode ^
|
||||
url.hashCode ^
|
||||
contentLength.hashCode ^
|
||||
version.hashCode ^
|
||||
remoteAddr.hashCode ^
|
||||
data.hashCode;
|
||||
|
||||
@override
|
||||
bool operator ==(Object other) =>
|
||||
identical(this, other) ||
|
||||
other is RustHttpResponse &&
|
||||
runtimeType == other.runtimeType &&
|
||||
statusCode == other.statusCode &&
|
||||
headers == other.headers &&
|
||||
url == other.url &&
|
||||
contentLength == other.contentLength &&
|
||||
version == other.version &&
|
||||
remoteAddr == other.remoteAddr &&
|
||||
data == other.data;
|
||||
}
|
Reference in New Issue
Block a user