mirror of
https://github.com/foss42/apidash.git
synced 2025-12-01 18:28:25 +08:00
SSE: Stopping/Cancelling implementation
This commit is contained in:
@@ -35,6 +35,8 @@ mixin _$RequestModel {
|
||||
bool get isWorking => throw _privateConstructorUsedError;
|
||||
@JsonKey(includeToJson: false)
|
||||
DateTime? get sendingTime => throw _privateConstructorUsedError;
|
||||
@JsonKey(includeToJson: false)
|
||||
bool get isStreaming => throw _privateConstructorUsedError;
|
||||
String? get preRequestScript => throw _privateConstructorUsedError;
|
||||
String? get postRequestScript => throw _privateConstructorUsedError;
|
||||
|
||||
@@ -66,6 +68,7 @@ abstract class $RequestModelCopyWith<$Res> {
|
||||
HttpResponseModel? httpResponseModel,
|
||||
@JsonKey(includeToJson: false) bool isWorking,
|
||||
@JsonKey(includeToJson: false) DateTime? sendingTime,
|
||||
@JsonKey(includeToJson: false) bool isStreaming,
|
||||
String? preRequestScript,
|
||||
String? postRequestScript});
|
||||
|
||||
@@ -99,6 +102,7 @@ class _$RequestModelCopyWithImpl<$Res, $Val extends RequestModel>
|
||||
Object? httpResponseModel = freezed,
|
||||
Object? isWorking = null,
|
||||
Object? sendingTime = freezed,
|
||||
Object? isStreaming = null,
|
||||
Object? preRequestScript = freezed,
|
||||
Object? postRequestScript = freezed,
|
||||
}) {
|
||||
@@ -147,6 +151,10 @@ class _$RequestModelCopyWithImpl<$Res, $Val extends RequestModel>
|
||||
? _value.sendingTime
|
||||
: sendingTime // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime?,
|
||||
isStreaming: null == isStreaming
|
||||
? _value.isStreaming
|
||||
: isStreaming // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
preRequestScript: freezed == preRequestScript
|
||||
? _value.preRequestScript
|
||||
: preRequestScript // ignore: cast_nullable_to_non_nullable
|
||||
@@ -207,6 +215,7 @@ abstract class _$$RequestModelImplCopyWith<$Res>
|
||||
HttpResponseModel? httpResponseModel,
|
||||
@JsonKey(includeToJson: false) bool isWorking,
|
||||
@JsonKey(includeToJson: false) DateTime? sendingTime,
|
||||
@JsonKey(includeToJson: false) bool isStreaming,
|
||||
String? preRequestScript,
|
||||
String? postRequestScript});
|
||||
|
||||
@@ -240,6 +249,7 @@ class __$$RequestModelImplCopyWithImpl<$Res>
|
||||
Object? httpResponseModel = freezed,
|
||||
Object? isWorking = null,
|
||||
Object? sendingTime = freezed,
|
||||
Object? isStreaming = null,
|
||||
Object? preRequestScript = freezed,
|
||||
Object? postRequestScript = freezed,
|
||||
}) {
|
||||
@@ -287,6 +297,10 @@ class __$$RequestModelImplCopyWithImpl<$Res>
|
||||
? _value.sendingTime
|
||||
: sendingTime // ignore: cast_nullable_to_non_nullable
|
||||
as DateTime?,
|
||||
isStreaming: null == isStreaming
|
||||
? _value.isStreaming
|
||||
: isStreaming // ignore: cast_nullable_to_non_nullable
|
||||
as bool,
|
||||
preRequestScript: freezed == preRequestScript
|
||||
? _value.preRequestScript
|
||||
: preRequestScript // ignore: cast_nullable_to_non_nullable
|
||||
@@ -315,6 +329,7 @@ class _$RequestModelImpl implements _RequestModel {
|
||||
this.httpResponseModel,
|
||||
@JsonKey(includeToJson: false) this.isWorking = false,
|
||||
@JsonKey(includeToJson: false) this.sendingTime,
|
||||
@JsonKey(includeToJson: false) this.isStreaming = false,
|
||||
this.preRequestScript,
|
||||
this.postRequestScript});
|
||||
|
||||
@@ -350,13 +365,16 @@ class _$RequestModelImpl implements _RequestModel {
|
||||
@JsonKey(includeToJson: false)
|
||||
final DateTime? sendingTime;
|
||||
@override
|
||||
@JsonKey(includeToJson: false)
|
||||
final bool isStreaming;
|
||||
@override
|
||||
final String? preRequestScript;
|
||||
@override
|
||||
final String? postRequestScript;
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'RequestModel(id: $id, apiType: $apiType, name: $name, description: $description, requestTabIndex: $requestTabIndex, httpRequestModel: $httpRequestModel, responseStatus: $responseStatus, message: $message, httpResponseModel: $httpResponseModel, isWorking: $isWorking, sendingTime: $sendingTime, preRequestScript: $preRequestScript, postRequestScript: $postRequestScript)';
|
||||
return 'RequestModel(id: $id, apiType: $apiType, name: $name, description: $description, requestTabIndex: $requestTabIndex, httpRequestModel: $httpRequestModel, responseStatus: $responseStatus, message: $message, httpResponseModel: $httpResponseModel, isWorking: $isWorking, sendingTime: $sendingTime, isStreaming: $isStreaming, preRequestScript: $preRequestScript, postRequestScript: $postRequestScript)';
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -382,6 +400,8 @@ class _$RequestModelImpl implements _RequestModel {
|
||||
other.isWorking == isWorking) &&
|
||||
(identical(other.sendingTime, sendingTime) ||
|
||||
other.sendingTime == sendingTime) &&
|
||||
(identical(other.isStreaming, isStreaming) ||
|
||||
other.isStreaming == isStreaming) &&
|
||||
(identical(other.preRequestScript, preRequestScript) ||
|
||||
other.preRequestScript == preRequestScript) &&
|
||||
(identical(other.postRequestScript, postRequestScript) ||
|
||||
@@ -403,6 +423,7 @@ class _$RequestModelImpl implements _RequestModel {
|
||||
httpResponseModel,
|
||||
isWorking,
|
||||
sendingTime,
|
||||
isStreaming,
|
||||
preRequestScript,
|
||||
postRequestScript);
|
||||
|
||||
@@ -435,6 +456,7 @@ abstract class _RequestModel implements RequestModel {
|
||||
final HttpResponseModel? httpResponseModel,
|
||||
@JsonKey(includeToJson: false) final bool isWorking,
|
||||
@JsonKey(includeToJson: false) final DateTime? sendingTime,
|
||||
@JsonKey(includeToJson: false) final bool isStreaming,
|
||||
final String? preRequestScript,
|
||||
final String? postRequestScript}) = _$RequestModelImpl;
|
||||
|
||||
@@ -467,6 +489,9 @@ abstract class _RequestModel implements RequestModel {
|
||||
@JsonKey(includeToJson: false)
|
||||
DateTime? get sendingTime;
|
||||
@override
|
||||
@JsonKey(includeToJson: false)
|
||||
bool get isStreaming;
|
||||
@override
|
||||
String? get preRequestScript;
|
||||
@override
|
||||
String? get postRequestScript;
|
||||
|
||||
Reference in New Issue
Block a user