Liking cljdoc? Tell your friends :D

clj-chrome-devtools.commands.audits

Audits domain allows investigation of page violations and possible improvements.

Audits domain allows investigation of page violations and possible improvements.
raw docstring

get-encoded-responseclj

(get-encoded-response)
(get-encoded-response {:as params
                       :keys [request-id encoding quality size-only]})
(get-encoded-response connection
                      {:as params
                       :keys [request-id encoding quality size-only]})

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

Parameters map keys:

KeyDescription
:request-idIdentifier of the network request to get content for.
:encodingThe encoding to use.
:qualityThe quality of the encoding (0-1). (defaults to 1) (optional)
:size-onlyWhether to only return the size information (defaults to false). (optional)

Return map keys:

KeyDescription
:bodyThe encoded body as a base64 string. Omitted if sizeOnly is true. (optional)
:original-sizeSize before re-encoding.
:encoded-sizeSize after re-encoding.
Returns the response body and size if it were re-encoded with the specified settings. Only applies to images.

Parameters map keys:


  Key         | Description 
  ------------|------------ 
  :request-id | 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) (optional)
  :size-only  | Whether to only return the size information (defaults to false). (optional)

Return map keys:


  Key            | Description 
  ---------------|------------ 
  :body          | The encoded body as a base64 string. Omitted if sizeOnly is true. (optional)
  :original-size | Size before re-encoding.
  :encoded-size  | Size after re-encoding.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close