Added WebRequest::getMethod() to get the HTTP method of the request.