RB_
RB_

Reputation: 1192

ZIO HTTP configuration for max request size

I want to upload a file using ZIO HTTP, but it gives 413 code, the payload is too large.
I can't figure out how to change the configuration of the underlying Netty server to fix the issue.

Any help would be appreciated.

Upvotes: 3

Views: 994

Answers (1)

RB_
RB_

Reputation: 1192

After looking at the source code I have figured it out:

private val server =
    Server.port(8090) ++
    Server.maxRequestSize(maxRequestSize) ++
    Server.app(routes)

Upvotes: 6

Related Questions