AuditsClientGetEncodedResponseAsync Method |
Version 130.1.90
Returns the response body and size if it were re-encoded with the specified settings. Only
applies to images.
Namespace: CefSharp.DevTools.AuditsAssembly: CefSharp.Core (in CefSharp.Core.dll) Version: 129.0.110.0
Syntax public Task<GetEncodedResponseResponse> GetEncodedResponseAsync(
string requestId,
GetEncodedResponseEncoding encoding,
double? quality = null,
bool? sizeOnly = null
)
public:
Task<GetEncodedResponseResponse^>^ GetEncodedResponseAsync(
String^ requestId,
GetEncodedResponseEncoding encoding,
Nullable<double> quality = nullptr,
Nullable<bool> sizeOnly = nullptr
)
Parameters
- requestId String
- Identifier of the network request to get content for.
- encoding GetEncodedResponseEncoding
- The encoding to use.
- quality NullableDouble (Optional)
- The quality of the encoding (0-1). (defaults to 1)
- sizeOnly NullableBoolean (Optional)
- Whether to only return the size information (defaults to false).
Return Value
TaskGetEncodedResponseResponsereturns System.Threading.Tasks.Task<GetEncodedResponseResponse>
See Also