Horse is an Express inspired web framework for Delphi.
Designed to ease things up for fast development in a minimalist way and with high performance.
Installation is done using the boss install
command:
$ boss install horse
- (Optional) Install wizard
uses Horse;
var
App: THorse;
begin
App := THorse.Create(9000);
App.Get('/ping',
procedure(Req: THorseRequest; Res: THorseResponse; Next: TProc)
begin
Res.Send('pong');
end);
App.Start;
end.
For an more maintainable middleware ecosystem, we've put official middlewares into separate repositories:
This is a list of middlewares that are created by the Horse community, please create a PR if you want to see yours!
- viniciussanchez/basic-auth
- viniciussanchez/compression
- bittencourtthulio/etag
- gabrielbaltazar/gbswagger
Horse
is free and open-source software licensed under the MIT License.