HttpVerbExtensions.TryFromMethodString method
Try to convert a HTTP method string to its corresponding HttpVerb enum value.
public static bool TryFromMethodString(string method, out HttpVerb verb)
parameter | description |
---|---|
method | The HTTP method string (case-insensitive). |
verb | When this method returns, contains the HttpVerb value if conversion succeeded, or default value if it failed. |
Return Value
true if the conversion succeeded; otherwise, false.
See Also
- enum HttpVerb
- class HttpVerbExtensions
- namespace Kestrun.Utilities