https://github.com/dliocode/horse-utils-clientip
Basic functions for Horse.
https://github.com/dliocode/horse-utils-clientip
Last synced: 5 months ago
JSON representation
Basic functions for Horse.
- Host: GitHub
- URL: https://github.com/dliocode/horse-utils-clientip
- Owner: dliocode
- Created: 2020-12-24T14:22:58.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T10:31:02.000Z (over 4 years ago)
- Last Synced: 2025-06-03T15:07:18.807Z (about 1 year ago)
- Language: Pascal
- Homepage:
- Size: 27.3 KB
- Stars: 20
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Horse-Utils-ClientIP
    
Support: developer.dlio@gmail.com
Basic functions for Horse.
### For install in your project using [boss](https://github.com/HashLoad/boss):
``` sh
$ boss install github.com/dliocode/horse-utils-clientip
```
## Usage
Capture the client's IP:
```delphi
uses
Horse,
Horse.Utils.ClientIP;
begin
THorse.Get('ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
begin
Res.Send(ClientIP(Req));
end);
THorse.Listen(9000);
end.
```
## License
MIT © [Danilo Lucas](https://github.com/dliocode/)