Skip to content

Commit

Permalink
Horse 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez committed Mar 10, 2023
1 parent 1c77439 commit 04ee87d
Show file tree
Hide file tree
Showing 6 changed files with 307 additions and 242 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@
# Delphi history and backups
__history/
__recovery/
**/backup/
**/lib/
*.lps
*.~*

# Castalia statistics file (since XE7 Castalia is distributed with Delphi)
Expand Down
6 changes: 3 additions & 3 deletions boss-lock.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"hash": "8a53e9cf872feaac975a8fad2c6a5af0",
"updated": "2022-07-06T08:16:42.8372463-03:00",
"updated": "2023-03-09T23:29:10.8631859-03:00",
"installedModules": {
"github.com/hashload/horse": {
"name": "horse",
"version": "3.0.2",
"hash": "929cb417c573af469c997a7e1fda5dbb",
"version": "3.1.0",
"hash": "fc3b8eefb46c1a3b387e86ca46a9faa1",
"artifacts": {},
"failed": false,
"changed": false
Expand Down
4 changes: 2 additions & 2 deletions boss.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "horse-basic-auth",
"description": "",
"version": "1.0.0",
"version": "1.2.3",
"homepage": "",
"mainsrc": "/src",
"projects": [],
"dependencies": {
"github.com/hashload/horse": "^3.0.2"
"github.com/hashload/horse": "^3.1.0"
}
}
6 changes: 3 additions & 3 deletions samples/delphi/Samples.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ begin
// THorse.Use(HorseBasicAuthentication(MyCallbackValidation, THorseBasicAuthenticationConfig.New.SkipRoutes(['/ping'])));

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 port %d', [Horse.Port]));
Writeln(Format('Server is runing on port %d', [THorse.Port]));
end);
end.
Loading

0 comments on commit 04ee87d

Please sign in to comment.