academiadocodigo / Horse-ETag

MIddleware para Servidor Horse para Controle de Etags

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eTag

eTag is not an official middleware. It was created to facilitate working with eTag using the Horse framework.
We created a channel on Telegram for questions and support:

⚙️ Installation

Installation is done using the boss install command:

boss install bittencourtthulio/Horse-ETag

If you choose to install manually, simply add the following folders to your project, in Project > Options > Resource Compiler > Directories and Conditionals > Include file search path

../Horse-ETag/src

✔️ Compatibility

This middleware is compatible with projects developed in:

  • Delphi
  • Lazarus

⚡️ Quickstart

uses Horse, Horse.Etag, Horse.Jhonson, System.JSON;

begin
  THorse
    .Use(Jhonson)
    .Use(eTag);

  THorse.Get('ping',
    procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
    begin
      Res.Send<TJsonObject>(TJsonObject.Create.AddPair('Teste', 'Teste'));
    end);

  THorse.Listen(9000);
end.

image

image

⚠️ License

eTag is free and open-source middleware licensed under the MIT License.

About

MIddleware para Servidor Horse para Controle de Etags

License:MIT License


Languages

Language:Pascal 100.0%