angularjs - How to limit response size for $http service? -
i have spring controller returns data in json format , angularjs web app consumes data it. amount of data big crashes page without finishing request.
that's why limit response in size, able cancel request , show correct error message if necessary. how can this?
you cannot limit data client-side if crashes when consume response check headers field in json response , check content-lenght parameter
response.headers('content-length');
Comments
Post a Comment