CefResponse

abstract class CefResponse : CefNativeAdapter

Class used to represent a web response. The methods of this class may be called on any thread.

Inheritors

Functions

Link copied to clipboard
Create a new CefRequest object.
Link copied to clipboard
abstract fun dispose()
Removes the native reference from an unused object.
Link copied to clipboard
Get the response error code.
Link copied to clipboard
abstract fun getHeaderByName(name: String): String
Get the value for the specified response header field.
Link copied to clipboard
abstract fun getHeaderMap(headerMap: Map<String, String>)
Get all response header fields.
Link copied to clipboard
abstract fun getMimeType(): String
Get the response mime type.
Link copied to clipboard
open fun getNativeRef(): Long

open fun getNativeRef(identifer: String): Long
Method is called by the native code to get the reference to an previous stored identifier.
Link copied to clipboard
abstract fun getStatus(): Int
Get the response status code.
Link copied to clipboard
abstract fun getStatusText(): String
Get the response status text.
Link copied to clipboard
abstract fun isReadOnly(): Boolean
Returns true if this object is read-only.
Link copied to clipboard
abstract fun setError(errorCode: CefLoadHandler.ErrorCode)
Get the response error code.
Link copied to clipboard
abstract fun setHeaderByName(name: String, value: String, overwrite: Boolean)
Set the value for the specified response header field.
Link copied to clipboard
abstract fun setHeaderMap(headerMap: Map<String, String>)
Set all response header fields.
Link copied to clipboard
abstract fun setMimeType(mimeType: String)
Set the response mime type.
Link copied to clipboard
open fun setNativeRef(identifer: String, nativeRef: Long)
Method is called by the native code to store a reference to an implemented native JNI counterpart.
Link copied to clipboard
abstract fun setStatus(status: Int)
Set the response status code.
Link copied to clipboard
abstract fun setStatusText(statusText: String)
Set the response status text.
Link copied to clipboard
open fun toString(): String