我想使用 ZIO HTTP 上傳檔案,但它給出了 413 代碼,有效負載太大。
我不知道如何更改底層 Netty 服務器的配置來解決這個問題。
任何幫助,將不勝感激。
uj5u.com熱心網友回復:
查看源代碼后,我想通了:
private val server =
Server.port(8090)
Server.maxRequestSize(maxRequestSize)
Server.app(routes)
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/394693.html
