Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge v2.0.5 to master #15

Merged
merged 3 commits into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/src/http_interceptor/models/request_data_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class RequestData extends BaseRequest {
bool persistentConnection;

// Request only variables.
dynamic body;
String? body;
Encoding? encoding;

// MultipartRequest only properties.
Expand All @@ -35,7 +35,7 @@ class RequestData extends BaseRequest {
}) : super(method, url);

factory RequestData.fromBaseRequest(BaseRequest request) {
dynamic reqBody;
String? reqBody;
Encoding? reqEncoding;
Map<String, String>? reqFields;
List<MultipartFile>? reqFiles;
Expand Down
8 changes: 6 additions & 2 deletions lib/src/http_interceptor/models/response_data_model.dart
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
// ignore_for_file: overridden_fields

import 'dart:typed_data';

import '../http_interceptor.dart';

class ResponseData extends BaseResponse {
@override
// ignore: overridden_fields
int statusCode;

@override
RequestData? request;

ByteStream stream;

String? body;
Expand All @@ -17,7 +21,7 @@ class ResponseData extends BaseResponse {
required this.stream,
required this.statusCode,
this.body,
RequestData? request,
this.request,
int? contentLength,
String? reasonPhrase,
Map<String, String> headers = const {},
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: network_requests
description: An easy-to-use http network requests handler.
version: 2.0.4
version: 2.0.5
homepage: https://github.com/Coder-Manuel/network_requests

environment:
Expand Down