Added getter methof that returns the HTTP method