Is there a limit of the size of response I can read over HTTP

后端 未结 2 1257
伪装坚强ぢ
伪装坚强ぢ 2021-02-15 00:31

I have a java program, that calls a url. The response of url is a json/string. I have to write a program that fetches the data from this url, but I was wondering if there\'s a l

2条回答
  •  太阳男子
    2021-02-15 01:02

    you can consume the response in chunks i.e if the response is 8 mb you can consume 1mb at a time

    here is the example http://mrbool.com/keep-alive-connections-and-chunked-response-in-http-1-1-with-java/27915

提交回复
热议问题