Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dliocode/horse-utils-clientip
Basic functions for Horse.
https://github.com/dliocode/horse-utils-clientip
Last synced: about 1 month 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 (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-22T10:31:02.000Z (almost 3 years ago)
- Last Synced: 2024-11-07T08:51:38.318Z (2 months ago)
- Language: Pascal
- Homepage:
- Size: 27.3 KB
- Stars: 19
- Watchers: 5
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Horse-Utils-ClientIP
![](https://img.shields.io/github/stars/dliocode/horse-utils-clientip.svg) ![](https://img.shields.io/github/forks/dliocode/horse-utils-clientip.svg) ![](https://img.shields.io/github/tag/dliocode/horse-utils-clientip.svg) ![](https://img.shields.io/github/release/dliocode/horse-utils-clientip.svg) ![](https://img.shields.io/github/issues/dliocode/horse-utils-clientip.svg)
Support: [email protected]
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/)