HttpMethodNames.opIndex

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

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

Parameters

name cstring

HTTP method name string

Return Value

HTTP method enumerator value corresponding to name string or HttpMethod.Undefined if the name string is unknown.

Meta