[−][src]Function http_parser::parser::is_valid_method
fn is_valid_method(method: &str) -> bool
Checks if the given string slice is a valid HTTP method according to IETF RFC 2616 5.1.1.
Supported valid methods are:
OPTIONS
GET
HEAD
POST
PUT
DELETE
TRACE
CONNECT