/horse-utils-clientip

Basic functions for Horse.

Primary LanguagePascal

Horse-Utils-ClientIP

Support: developer.dlio@gmail.com

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