Support request method in route matching (close #535).