Skip to content

THTTPRouter.StringToRouteMethod

Converts string to route method enumeration

Declaration

Source position: httproute.pp line 249

public 
class function THTTPRouter.StringToRouteMethod(const S: string)
                                               : TRouteMethod;

Description

StringToRouteMethod parses a string representation of an HTTP method and returns the corresponding TRouteMethod enumeration value. It supports standard HTTP method names like "GET", "POST", etc.