horse-utils-clientip
horse-utils-clientip copied to clipboard
Basic functions for Horse.
Horse-Utils-ClientIP
Support: [email protected]
Basic functions for Horse.
For install in your project using boss:
$ boss install github.com/dliocode/horse-utils-clientip
Usage
Capture the client's IP:
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