Disabling Message Chunking¶
When processing large messages, message chunking facilitates sending the message as multiple independent chunks.
Message chunking is set using the
Transfer-Encoding: chunked header. However, some legacy backends might not support
chunked messages. To disable sending chunked messages to the backend for a specific API, follow the steps below:
- Go to the created API and from the Left Menu, go to Runtime Configurations.
In the Select a Mediation Policy popup you can select Common Policies radio button and then select disable-chunking raio button.
Press select button and then save the API.
Once the API is published, chunking is disabled for the message that is sent to the backend.
To stop chunked messages from being sent to the client, you can apply the same mediation policy in the response section as well.