Click or drag to resize

AuditsClientGetEncodedResponseAsync Method

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

Namespace:  CefSharp.DevTools.Audits
Assembly:  CefSharp (in CefSharp.dll) Version: 101.0.180.0 (101.0.180.0)
Syntax
public Task<GetEncodedResponseResponse> GetEncodedResponseAsync(
	string requestId,
	GetEncodedResponseEncoding encoding,
	double? quality = null,
	bool? sizeOnly = null
)

Parameters

requestId
Type: SystemString
Identifier of the network request to get content for.
encoding
Type: CefSharp.DevTools.AuditsGetEncodedResponseEncoding
The encoding to use.
quality (Optional)
Type: SystemNullableDouble
The quality of the encoding (0-1). (defaults to 1)
sizeOnly (Optional)
Type: SystemNullableBoolean
Whether to only return the size information (defaults to false).

Return Value

Type: TaskGetEncodedResponseResponse
returns System.Threading.Tasks.Task<GetEncodedResponseResponse>
See Also