ResourceResponse

Encapsulates resource response. Custom response can be returned in shouldInterceptRequest to override HTML page loading.

Constructors

Link copied to clipboard
constructor(@NonNull inputStream: InputStream, @NonNull mimeType: String)
Constructs a resource response provided by the input stream.
constructor(@NonNull inputStream: InputStream, @NonNull mimeType: String, @NonNull charset: String)
Constructs a resource response provided by the input stream.
constructor(@NonNull dataProvider: DataProvider, @NonNull mimeType: String)
Constructs a resource response provided by the data provider.
constructor(@NonNull dataProvider: DataProvider, @NonNull mimeType: String, @NonNull charset: String)
Constructs a resource response provided by the data provider.

Functions

Link copied to clipboard
Constructs a resource response that skips resource loading.