Http Service Interface
interface HttpServiceInterface
Content copied to clipboard
Interface to the HTTP service. This interface provides basic functionality that allows exchanging HTTP requests/responses between client and server in an asynchronous way.
Functions
cancel Request
Link copied to clipboard
Cancels a pending or running request (or download request).
download
Link copied to clipboard
abstract fun download(@NonNull options: DownloadOptions, @NonNull callback: DownloadStatusCallback): Long
Content copied to clipboard
Send the download request.
request
Link copied to clipboard
abstract fun request(@NonNull request: HttpRequest, @NonNull callback: HttpResponseCallback): Long
Content copied to clipboard
Sends (or enqueues) a platform's native HTTP Request.
set Interceptor
Link copied to clipboard
abstract fun setInterceptor(@Nullable interceptor: HttpServiceInterceptorInterface)
Content copied to clipboard
Set an interceptor for the HttpService's function calls.
set Max Requests Per Host
Link copied to clipboard
Set maximum number of requests to a single host.
supports Keep Compression
Link copied to clipboard
Returns true when the HTTP service supports the keepCompression flag for HTTP requests, false otherwise.