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
Jacktar LiuJacktar Liu 

Method does not exist or incorrect signature: [HttpRequest].setMethod(String)

I created a class as bolew , when I  save it , it has an error:'Error: Compile Error: Method does not exist or incorrect signature: [HttpRequest].setMethod(String) at line 16 column 9'. I think there is nothing wrong in my code , and the same code works in another org. So I want to know why the same code works in one org and does not work in another org.
 User-added image
AshlekhAshlekh
Hi,

Your method is looking good. Strange! 
Bhawani SharmaBhawani Sharma
Do you have any Custom class with name HttpRequest?
Vinit_KumarVinit_Kumar
I agree with Bhawani  it seems you have an Apex class in org named HttpRequest.I would suggest you to check that out...