function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
agrassiagrassi 

How do I know the page request HTTP method?

Hello all!

 

I'd like to expose some of our org's functionality through a custom REST API. It would be a set of VF pages published in a Force.com site. Those pages would return JSON encoded data.

 

My question is: how do I know the method used to request the VF page, from inside its Apex controller? I.e., was it a GET, POST, DELETE, etc?

 

Thanks in advance,

Antonio