function
IsSupportedEndpointMethod
Report whether a method belongs to the custom endpoint contract.
Arguments
| Argument | Type | Description |
|---|---|---|
method | string | The method value. |
Returns
The declared result.
boolHow it works
CONNECT, DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT are accepted case-insensitively after trimming.
Full signature
func IsSupportedEndpointMethod(method string) bool