So I am trying to send a really large amount of data back to user requesting.
var map = FindByName(name);
if (map == null)
return Negotiate.WithStatusCode(HttpStatusCode.NotFound);
Console.Write(map.products.Count());
return Negotiate.WithStatusCode(HttpStatusCode.OK).WithModel(map);
I don't know the exact size by I am assuming that when map.products (a object that has a list of products) hits a size of about 1000 I don't get any data back by the server.
var deferred = $q.defer();
var url = requestUrl + "products/" + name;
$http({
url: url,
method: "GET"
}).success(function (data) {
deferred.resolve(data);
console.log("DATA: ", data);
}).error(function (res, status, headers, config) {
deferred.reject("Error: " + res);
});
return deferred.promise;
This is the code I used to get the response back (written in angularJS) and again data is empty if the size is too large. Same goes when I hit the endpoint with postman. Is there anyway i can send this large object back as a http response?