isRequestHeadMethod()function

isRequestHeadMethod(method: string): method is RequestHeadMethod
ParamType
methodstring
The method string to test. required
Return
method is RequestHeadMethod
true if method is a supported RequestHeadMethod, narrowing its type.

Is a string a supported HTTP request method that never sends a body?

Examples

isRequestHeadMethod("GET") // true