How to Increase Accepted Header Size of the Ballerina Http Listener?

36 Views Asked by At

I have encountered an issue where the Ballerina Http Listener returns a 431 error due to header size limitations. How can I increase the accepted header size?

1

There are 1 best solutions below

0
Chiran Sachintha On

We can use the RequestLimitConfigs to overwrite the default header size. This is a part of the http:ListenerConfiguration.

Example :

http:ListenerConfiguration serverEP = {
    requestLimits: {
        maxHeaderSize: <size-in-bytes>
    }
};