[+] Added Context.Request.Query method which returns the RawWebRequest property

This commit is contained in:
Daniele Teti 2021-07-03 11:30:05 +02:00
parent ac2a03a804
commit c7bb9858ef

View File

@ -390,6 +390,7 @@ type
function ThereIsRequestBody: Boolean;
procedure EnsureQueryParamExists(const AName: string);
function QueryString: string;
function QueryStringParam(const AName: string): string;
function QueryStringParamExists(const AName: string): Boolean;
function QueryStringParams: TStrings;
@ -1632,6 +1633,11 @@ begin
Result := FQueryParams;
end;
function TMVCWebRequest.QueryString: string;
begin
Result := FWebRequest.Query;
end;
function TMVCWebRequest.QueryStringParam(const AName: string): string;
begin
Result := FWebRequest.QueryFields.Values[AName];