Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Parse

static func Parse(method: string) -> Result<HttpMethod, HttpError>

Declaring type: HttpMethod
Module: System.Web.Http
Assembly: System.Web.dll
Source file: HttpMethod.rvn

Parses a method token. Known names are canonicalized case-insensitively; custom spelling is retained. Invalid tokens return HttpError.InvalidRequest.

Parameters

Name Type Description
method String

Return value

Result<HttpMethod, HttpError>