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 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
This middleware is compatible with projects developed in:
- Delphi
- Lazarus
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.
eTag
is free and open-source middleware licensed under the MIT License.