Audits domain allows investigation of page violations and possible improvements.
Audits domain allows investigation of page violations and possible improvements.
(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:
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. |
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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close