Check for Download file size

Gatling version: 3.12.0 (must be up to date)

Hi, I have a download API that needs to be verified, as I was advised to use

.check(md5.is(...))

This was helpful, but it’s only for file with fixed content, so I believe a check for response size is really helpful in these cases, for example a download file maybe around 1MB ~ 2MB (as log data, record history…), so check for file size to be greater than 800KB should be super helpful in this case.
May I know if Gatling have implementation for this / is it possible ?

Found it, we can use

.check(bodyLength.lte(1024))

Reference Gatling checks scripting reference
The lte is chainable.