Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wheeOs
2022-07-11 17:40:46 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2022-07-11 17:40:46 +0200
Commit
39b13dd9667dacbbd6a2cae575feeda6e2270d08
39b13dd9
1 parent
b5b275e7
Update http_request_io.dart
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
lib/get_connect/http/src/http/io/http_request_io.dart
lib/get_connect/http/src/http/io/http_request_io.dart
View file @
39b13dd
...
...
@@ -8,6 +8,7 @@ import '../../response/response.dart';
import
'../interface/request_base.dart'
;
import
'../utils/body_decoder.dart'
;
/// A `dart:io` implementation of `HttpRequestBase`.
class
HttpRequestImpl
extends
HttpRequestBase
{
io
.
HttpClient
?
_httpClient
;
...
...
@@ -57,6 +58,10 @@ class HttpRequestImpl extends HttpRequestBase {
});
final
bodyBytes
=
(
response
);
final
interceptionResponse
=
await
request
.
responseInterceptor
?.
call
(
request
,
T
,
response
);
if
(
interceptionResponse
!=
null
)
return
interceptionResponse
;
final
stringBody
=
await
bodyBytesToString
(
bodyBytes
,
headers
);
final
body
=
bodyDecoded
<
T
>(
...
...
Please
register
or
login
to post a comment