Domanda

I am using a RESTlet REST web service to deliver data via a GET to my iOS and Android apps. Occasionally I get errors with the connection on the app side. I put the url to the service in a browser to invoke a GET and see a response. I noticed that the contents of the service isn't delivered immediately but in chunks or a few lines at a time. The data type of the response is JSON.

Is there a way to get the entire response in one chunk when the service is invoked?

È stato utile?

Soluzione

call the ServerResource#setResponseEntityBuffering(true) method

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top