mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
[+] Added Context.Request.Query method which returns the RawWebRequest property
This commit is contained in:
parent
ac2a03a804
commit
c7bb9858ef
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user