Response

@Serializable
class Response(val id: Long, val result: JsonElement? = null, val error: Message.Response.ResponseError? = null) : Message

Represents the response of a CDP command.

A Response always corresponds to a previously sent Request, matched by its id.

Constructors

Link copied to clipboard
constructor(id: Long, result: JsonElement? = null, error: Message.Response.ResponseError? = null)

Types

Link copied to clipboard
@Serializable
class ResponseError(val code: Int, val message: String, val data: String? = null)

Representation of an error returned by the browser in response to a command.

Properties

Link copied to clipboard

The error returned by the browser, if the command failed.

Link copied to clipboard
val id: Long

The unique identifier of the request.

Link copied to clipboard
val result: JsonElement? = null

The result of the command execution, if successful.