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
Jason Law
2021-05-20 06:38:20 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a88111f59937508670994e471584594cc4866dad
a88111f5
1 parent
2f999d9c
Make withCredentials configurable
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
1 deletions
lib/get_connect/http/src/http.dart
lib/get_connect/http/src/http/html/http_request_html.dart
lib/get_connect/http/src/http/io/http_request_io.dart
lib/get_connect/http/src/http/stub/http_request_stub.dart
lib/get_connect/http/src/http.dart
View file @
a88111f
...
...
@@ -46,9 +46,11 @@ class GetHttpClient {
bool
allowAutoSignedCert
=
false
,
this
.
baseUrl
,
List
<
TrustedCertificate
>?
trustedCertificates
,
bool
withCredentials
=
false
,
})
:
_httpClient
=
HttpRequestImpl
(
allowAutoSignedCert:
allowAutoSignedCert
,
trustedCertificates:
trustedCertificates
,
withCredentials:
withCredentials
,
),
_modifier
=
GetModifier
();
...
...
lib/get_connect/http/src/http/html/http_request_html.dart
View file @
a88111f
...
...
@@ -13,6 +13,7 @@ class HttpRequestImpl implements HttpRequestBase {
HttpRequestImpl
({
bool
allowAutoSignedCert
=
true
,
List
<
TrustedCertificate
>?
trustedCertificates
,
this
.
withCredentials
=
false
,
});
/// The currently active XHRs.
...
...
@@ -20,7 +21,7 @@ class HttpRequestImpl implements HttpRequestBase {
///This option requires that you submit credentials for requests
///on different sites. The default is false
bool
withCredentials
=
false
;
final
bool
withCredentials
;
/// Sends an HTTP request and asynchronously returns the response.
@override
...
...
lib/get_connect/http/src/http/io/http_request_io.dart
View file @
a88111f
...
...
@@ -16,6 +16,7 @@ class HttpRequestImpl extends HttpRequestBase {
HttpRequestImpl
({
bool
allowAutoSignedCert
=
true
,
List
<
TrustedCertificate
>?
trustedCertificates
,
bool
withCredentials
=
false
,
})
{
_httpClient
=
io
.
HttpClient
();
if
(
trustedCertificates
!=
null
)
{
...
...
lib/get_connect/http/src/http/stub/http_request_stub.dart
View file @
a88111f
...
...
@@ -7,6 +7,7 @@ class HttpRequestImpl extends HttpRequestBase {
HttpRequestImpl
({
bool
allowAutoSignedCert
=
true
,
List
<
TrustedCertificate
>?
trustedCertificates
,
bool
withCredentials
=
false
,
});
@override
void
close
()
{}
...
...
Please
register
or
login
to post a comment