Request

@Serializable
class Request(val id: Long, val method: String, val params: JsonElement?)

Representation of a request sent to the Chrome DevTools Protocol (CDP).

A Request represents a command that the client (you) sends to the browser. Each request will eventually yield a matching Message.Response with the same id.

See also: Message.Response

Constructors

Link copied to clipboard
constructor(id: Long, method: String, params: JsonElement?)

Properties

Link copied to clipboard
val id: Long

The unique identifier of the request.

Link copied to clipboard

The method name of the CDP command to invoke.

Link copied to clipboard
val params: JsonElement?

Optional parameters of the command, encoded as JSON.