HttpMethodNames.opIndex

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

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

Parameters

method HttpMethod

HTTP method enumerator value

Return Value

Type: string

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

Meta