Support: [email protected]
Basic functions for Horse.
For install in your project using boss:
$ boss install github.com/dliocode/horse-utils-clientip
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.
MIT © Danilo Lucas