Message Size

Overview

It is sometimes useful to filter incoming messages based, not only on the content of the message, but on external characteristics of the message. To this end, the API Gateway can be configured to reject messages that are greater or less than a specified size.

Configuration

To configure the API Gateway to block messages of a certain size, complete the following fields:

  • Enter the size (in bytes) of the smallest message that should be processed in the At least field. Messages smaller than this size will be rejected.

  • Enter the size (in bytes) of the largest message that should be processed in the At most field. Messages larger than the size entered here will be rejected.

  • The Use in Size Calculation options are used to specify the portion of the message that is to be used when calculating the size of the message.

    • If the Root body only option is selected, the API Gateway will calculate the size of the message body excluding all other MIME parts, i.e. attachments.

    • If the Attachments only option is selected, the API Gateway will only calculate the size of all attachments to the message. It will exclude the size of the root body payload from its calculation.

    • Finally, if the Root body and attachments option is selected, the API Gateway will include the root body together with all other MIME parts when it calculates the size of the message.

[Important] Important

The message size measured by the API Gateway does not include HTTP headers.