Activity Forums Salesforce® Discussions What is setCompressed(flag) method in Salesforce Apex?

  • What is setCompressed(flag) method in Salesforce Apex?

    Posted by Sumit on February 13, 2020 at 1:15 pm

    What is setCompressed(flag) method in Salesforce Apex?

    Aditya replied 5 years ago 3 Members · 2 Replies
  • 2 Replies
  • Marziya

    Member
    February 13, 2020 at 2:06 pm

    Hii Sumit,

    The setCompressed() method of the HttpRequest class appears to do just that (apply gzip compression to the request body). If true, the data in the body is delivered to the endpoint in the gzip compressed format. If false, no compression format is used.

  • Aditya

    Member
    February 13, 2020 at 2:34 pm

    Hi Sumit,

    Its return Boolean values either TRUE or FALSE

    TRUE: Data is delivered to endpoint in the ZIP format

    FALSE:  No comparasion format is used.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos