simple_https_service
library
Classes
-
CancelToken
-
(en) A token that lets the caller cancel one or more in-flight requests
issued through HttpsService or HttpsServiceForNative.
-
CertificatePinner
-
(en) Certificate pinning for HttpsServiceForNative.
Accepts a server certificate only when it exactly matches one of the
trusted certificates (e.g. self-signed certificates of a local server).
Host name and expiry are not verified, so prefer UtilSecurityContext
unless the certificate's SAN cannot be fixed (e.g. the server's IP changes).
This class is not available in Flutter web.
-
HttpsService
-
-
HttpsServiceForNative
-
-
MultipartFileSpec
-
(en) Specifies a single file part for multipart/form-data POST.
-
RetryConfig
-
(en) Global retry configuration for HttpsService and HttpsServiceForNative.
This works with singletons.
-
ServerResponse
-
(en) This class is used to store return values from the server.
It stores statuses categorized in an easy to use way.
-
TimingManager
-
(en) A manager that allows you to adjust timing when POSTing via https, etc.
This can be useful, for example,
when there is a write limit (x items/second) on the backend.
This works with singletons.
-
UtilCheckURL
-
(en) A utility for checking communication security.
-
UtilSecurityContext
-
(en) A utility for creating a SecurityContext that trusts specific
certificates (e.g. a self-signed certificate of a local server).
Pass the result to securityContext of HttpsServiceForNative.
Unlike CertificatePinner, normal TLS verification (including host name
and expiry) is still performed.
This class is not available in Flutter web.
-
UtilServerResponse
-
(en) A utility for formatting server responses.
Enums
-
EnumPostEncodeType
-
(en) Specifies the encode type for simple POST.
-
EnumServerResponseStatus
-
(en) To simplify responses from the server,
This is an enum that classifies the response content into
six types:
successful processing, timeout(connection or response), server error,
other error, SignIn required, and cancelled by the caller.
-
EnumServerResponseType
-