Sign in Join
FPDoc Onlineexperiment

THTTPRouter.StringToRouteMethod function

Member of THTTPRouterpublicIn unit HTTPRoute

Converts string to route method enumeration

Declaration

pascal
class function StringToRouteMethod(const S: string): TRouteMethod

Arguments

S

String representation of HTTP method

Function result

Route method enumeration value

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.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.