struct Protocol::Audits::GetEncodedResponse

Overview

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

Included Modules

Defined in:

protocol/audits.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def body : String | Nil #

The encoded body as a base64 string. Omitted if sizeOnly is true. (Encoded as a base64 string when passed over JSON)


[View source]
def encoded_size : Int::Primitive #

Size after re-encoding.


[View source]
def original_size : Int::Primitive #

Size before re-encoding.


[View source]