Package io.webfolder.cdp.command
Interface Audits
-
public interface AuditsAudits domain allows investigation of page violations and possible improvements
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetEncodedResponseResultgetEncodedResponse(String requestId, Encoding encoding)Returns the response body and size if it were re-encoded with the specified settings.GetEncodedResponseResultgetEncodedResponse(String requestId, Encoding encoding, Double quality, Boolean sizeOnly)Returns the response body and size if it were re-encoded with the specified settings.
-
-
-
Method Detail
-
getEncodedResponse
GetEncodedResponseResult getEncodedResponse(String requestId, Encoding encoding, Double quality, Boolean sizeOnly)
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.- Parameters:
requestId- Identifier of the network request to get content for.encoding- The encoding to use.quality- The quality of the encoding (0-1). (defaults to 1)sizeOnly- Whether to only return the size information (defaults to false).- Returns:
- GetEncodedResponseResult
-
getEncodedResponse
GetEncodedResponseResult getEncodedResponse(String requestId, Encoding encoding)
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.- Parameters:
requestId- Identifier of the network request to get content for.encoding- The encoding to use.- Returns:
- GetEncodedResponseResult
-
-