Search code examples
perlmason

How to find out the HTTP method of the current request?


I have no idea how to get the HTTP headers with Mason. I only know that $m is the Mason Request Class.


Solution

  • You could try:

    $ENV{'REQUEST_METHOD'}