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

  • 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