<types namespace="_rqt">
  <import name="OutgoingHttpHeaders" from="http"/>

  <type name="AqtOptions" desc="Configuration for requests.">
    <prop type="!Object" name="data" opt>
      Optional data to send to the server with the request.
    </prop>
    <prop name="type" type="string" default="json">
      How to send data: `json` to serialise JSON data and add _Content-Type: application/json_ header, and `form` for url-encoded transmission with _Content-Type: application/x-www-form-urlencoded_. _Multipart/form-data_ must be implemented manually.
    </prop>
    <prop opt type="!http.OutgoingHttpHeaders" name="headers">
      Headers to use for the request. By default, a single User-Agent header with _Mozilla/5.0 (Node.JS) aqt/{version}_ value is set.
    </prop>
    <prop boolean name="compress" default="true">
      Add the `Accept-Encoding: gzip, deflate` header to indicate to the server that it can send a compressed response.
    </prop>
    <prop opt number name="timeout">
      The timeout after which the request should fail.
    </prop>
    <prop opt string name="method">
      What HTTP method to use in making of the request. When no method is given and `data` is present, defaults to `POST`.
    </prop>
    <prop boolean name="binary" default="false">
      Whether to return a buffer instead of a string.
    </prop>
    <prop boolean name="justHeaders" default="false">
      Whether to stop the request after response headers were received, without waiting for the data.
    </prop>
  </type>
</types>