HTTPRequest.method() method

The method used (GET, POST, etc.)

Signature

class HTTPRequest {
  abstract method(): string;
}

Returns:

string