-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from viniciussanchez/master
Created samples
- Loading branch information
Showing
10 changed files
with
917 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,4 +65,4 @@ __recovery/ | |
# Castalia statistics file (since XE7 Castalia is distributed with Delphi) | ||
*.stat | ||
|
||
/modules | ||
modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"hash": "6ef9161b900632671022358216c7dfe7", | ||
"updated": "2019-10-15T22:07:14.0506259-03:00", | ||
"installedModules": { | ||
"github.com/hashload/handle-exception": { | ||
"name": "handle-exception", | ||
"version": "0.1.2", | ||
"hash": "519df8be252fbda605e46bef8d604915", | ||
"artifacts": {}, | ||
"failed": false, | ||
"changed": false | ||
}, | ||
"github.com/hashload/horse": { | ||
"name": "horse", | ||
"version": "1.6.8", | ||
"hash": "7a0b2394ac49dbd1a62f6d1021cac5b9", | ||
"artifacts": {}, | ||
"failed": false, | ||
"changed": false | ||
}, | ||
"github.com/hashload/jhonson": { | ||
"name": "jhonson", | ||
"version": "1.0.3", | ||
"hash": "334dfe6b2e7daa4cb6af5b1bf88ec76e", | ||
"artifacts": {}, | ||
"failed": false, | ||
"changed": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"name": "samples", | ||
"description": "", | ||
"version": "1.0.0", | ||
"homepage": "", | ||
"mainsrc": "./", | ||
"projects": [], | ||
"dependencies": { | ||
"github.com/HashLoad/handle-exception": "^0.1.2", | ||
"github.com/HashLoad/horse": "^1.6.8", | ||
"github.com/hashload/jhonson": "^1.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
program samples; | ||
|
||
{$APPTYPE CONSOLE} | ||
|
||
uses | ||
Horse, | ||
Horse.Jhonson, | ||
Horse.HandleException, | ||
System.SysUtils; | ||
|
||
{$R *.res} | ||
|
||
var | ||
App: THorse; | ||
|
||
begin | ||
App := THorse.Create(9000); | ||
|
||
App.Use(Jhonson); | ||
App.Use(HandleException); | ||
|
||
App.Get('ping', | ||
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc) | ||
begin | ||
raise Exception.Create('My Error!'); | ||
end); | ||
|
||
App.Start; | ||
end. |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.