isRequestMethod()function
isRequestMethod(method: string): method is RequestMethod
| Param | Type | |
|---|---|---|
method | string | The method string to test. required |
| Return | |
|---|---|
method is RequestMethod |
Is a string a supported HTTP request method?
Examples
isRequestMethod("GET") // true