HttpMethodNames.opIndex

Obtains the HTTP method name string by enumerator value. Does not throw an exception.

  1. HttpMethod opIndex(cstring name)
  2. istring opIndex(HttpMethod method)
    struct HttpMethodNames
    static
    opIndex

Parameters

method HttpMethod

HTTP method enumerator value

Return Value

Type: istring

HTTP method name string corresponding to name method or null on invalid value.

Meta