Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 943 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 943 Bytes

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