* Add PATCH method to router

This commit is contained in:
Michaël Van Canneyt 2023-01-02 16:09:08 +01:00
parent 60c80a45a0
commit 9998104048

View File

@ -36,7 +36,7 @@ Type
THTTPRouterClass = Class of THTTPRouter;
// Some common HTTP methods.
TRouteMethod = (rmUnknown,rmAll,rmGet,rmPost,rmPut,rmDelete,rmOptions,rmHead, rmTrace);
TRouteMethod = (rmUnknown,rmAll,rmGet,rmPost,rmPut,rmDelete,rmOptions,rmHead,rmTrace,rmPatch);
TRouteOption = (roCaseSensitive,roEmptyMatchesAll);
TRouteOptions = Set of TRouteOption;
@ -286,7 +286,7 @@ Function RouteMethodToString (R : TRouteMethod) : String;
Function HTTPRouter : THTTPRouter;
Const
RouteMethodNames : Array[TRouteMethod] of String = ('','','GET','POST','PUT','DELETE','OPTIONS','HEAD','TRACE');
RouteMethodNames : Array[TRouteMethod] of String = ('','','GET','POST','PUT','DELETE','OPTIONS','HEAD','TRACE','PATCH');
implementation