Improve HTTP request method handling.