pl.wendigo.chrome.api.audits / GetEncodedResponseRequest

GetEncodedResponseRequest

data class GetEncodedResponseRequest (source)

Represents request frame that can be used with Audits#getEncodedResponse operation call.

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

Link
Audits#getEncodedResponse method documentation.

See Also

AuditsOperations.getEncodedResponse

Constructors

<init>

GetEncodedResponseRequest(requestId: RequestId, encoding: String, quality: Double? = null, sizeOnly: Boolean? = null)

Represents request frame that can be used with Audits#getEncodedResponse operation call.

Properties

encoding

val encoding: String

The encoding to use.

quality

val quality: Double?

The quality of the encoding (0-1). (defaults to 1)

requestId

val requestId: RequestId

Identifier of the network request to get content for.

sizeOnly

val sizeOnly: Boolean?

Whether to only return the size information (defaults to false).