Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Mar 9, 2023
1 parent eb995d4 commit 8794e0f
Show file tree
Hide file tree
Showing 45 changed files with 2,622 additions and 3,540 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ src/*.~*
#FPC/Laz
lib/
backup/
*.lps

# Code coverage reports
**/console/
Expand Down
4 changes: 3 additions & 1 deletion samples/delphi/apache/Apache.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ exports
ApacheModuleData name 'apache_horse_module';

begin
// Need to set "HORSE_APACHE" compilation directive

THorse.DefaultModule := @ApacheModuleData;
THorse.HandlerName := 'apache_horse_module-handle';

THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send('pong');
end);
Expand Down
577 changes: 282 additions & 295 deletions samples/delphi/apache/Apache.dproj

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion samples/delphi/cgi/CGI.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ program CGI;
uses Horse;

begin
// Need to set "HORSE_CGI" compilation directive

THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send('pong');
end);
Expand Down
907 changes: 896 additions & 11 deletions samples/delphi/cgi/CGI.dproj

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions samples/delphi/console/Console.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ begin
{$ENDIF}

THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send('pong');
end);

THorse.Listen(9000,
procedure(Horse: THorse)
procedure
begin
Writeln(Format('Server is runing on %s:%d', [Horse.Host, Horse.Port]));
Writeln(Format('Server is runing on %s:%d', [THorse.Host, THorse.Port]));
Readln;
end);
end.
564 changes: 151 additions & 413 deletions samples/delphi/console/Console.dproj

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion samples/delphi/daemon/Daemon.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ program Daemon;
uses Horse, System.SysUtils;

begin
// Need to set "HORSE_DAEMON" compilation directive

THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send('pong');
end);
Expand Down
695 changes: 263 additions & 432 deletions samples/delphi/daemon/Daemon.dproj

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion samples/delphi/isapi/ISAPI.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ library ISAPI;
uses Horse;

begin
// Need to set "HORSE_ISAPI" compilation directive

THorse.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send('pong');
end);
Expand Down
570 changes: 281 additions & 289 deletions samples/delphi/isapi/ISAPI.dproj

Large diffs are not rendered by default.

5 changes: 0 additions & 5 deletions samples/delphi/vcl-ssl/VCL_SSL.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ uses
{$R *.res}

begin

{$IFDEF MSWINDOWS}
IsConsole := False;
ReportMemoryLeaksOnShutdown := True;
{$ENDIF}
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TfrmMain, frmMain);
Application.Run;

end.
Loading

0 comments on commit 8794e0f

Please sign in to comment.