chrome-devtools-kotlin / org.hildan.chrome.devtools.domains.audits / AuditsDomain

AuditsDomain

class AuditsDomain

Audits domain allows investigation of page violations and possible improvements.

Functions

disable

Disables issues domain, prevents further issues from being reported to the client.

suspend fun disable(): Unit

enable

Enables issues domain, sends the issues collected so far to the client by means of the issueAdded event.

suspend fun enable(): Unit

events

Subscribes to all events related to this domain.

fun events(): Flow<AuditsEvent>

getEncodedResponse

Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.

suspend fun getEncodedResponse(input: GetEncodedResponseRequest): GetEncodedResponseResponse

issueAdded

fun issueAdded(): Flow<IssueAddedEvent>