REST payload max size?

前端 未结 2 1938
萌比男神i
萌比男神i 2020-12-23 19:19

We are thinking of using a REST interface for communication between internal apps. App A will have to pass a fair bit of data representing a financial portfolio to app B.

2条回答
  •  攒了一身酷
    2020-12-23 19:42

    As Will Hartung said, there is no limit in the standard (RFC 2616). But every implementation has its own limits. A few examples:

    • Two megabytes for Tomcat (you can change it with maxPostSize)
    • Two megabytes for PHP (you can change it with post_max_size)
    • Two megabytes for Apache itself (you can change it with LimitRequestBody)

    These implementation limits are usually just the default configuration values, and can be changed to larger ones if required.

提交回复
热议问题