You need to sign in to do that
Don't have an account?
prufrock
Callout Request Compression from Apex code
Hello,
We have several webservice callouts from few Apex classes. In one particar instance we have this request that could amount to more than 100k.
The question I have : can we use any particular HttpRequest 1.1 header attribute or any other apex attribute (i.e. timeout__x) to compress the content from apex classes?
Is there any other options just the way have it in HttpRquest class or that 100k limit is the absolute final?
Greatly appreciate your response.
Thank you.
--FM
Maybe I am missing something, but can't you just add setCompressed to the request
HttpRequest req = new HttpRequest();
req.setMethod('POST');
req.setCompressed(true);
-Matt