Avoid unecessary HTTPMethod -> string -> HTTPMethod conversion
Merge pull request #921 from Geod24/httpmethod-optimization

Avoid unecessary HTTPMethod -> string -> HTTPMethod conversion