Added basic HTTP method matching for requests.