<types namespace="_goa">
  <import from="zlib" name="ZlibOptions" link="https://nodejs.org/api/zlib.html#zlib_class_options" desc="Each zlib-based class takes an options object. All options are optional."/>
  <record name="CompressConfig" extends="zlib.ZlibOptions">
    <fn opt return="boolean" name="filter">
      <arg string name="type" opt>
        The content type of the response.
      </arg>
      An optional function that checks the response content type to decide whether to compress. By default, it uses `compressible`.
    </fn>
    <prop number name="threshold" default="1024">
      Minimum response size in bytes to compress.
    </prop>
  </record>
</types>