
Horse ist ein ausdrücklich inspiriertes Web -Framework für Delphi und Lazarus.
Entwickelt, um die schnelle Entwicklung auf minimalistische Weise und mit hoher Leistung zu erleichtern .
Die Installation erfolgt mit dem Befehl boss install :
boss install horse uses Horse;
begin
THorse.Get( ' /ping ' ,
procedure(Req: THorseRequest; Res: THorseResponse)
begin
Res.Send( ' pong ' );
end );
THorse.Listen( 9000 );
end . { $MODE DELPHI }{ $H+ }
uses Horse;
procedure GetPing (Req: THorseRequest; Res: THorseResponse);
begin
Res.Send( ' Pong ' );
end ;
begin
THorse.Get( ' /ping ' , GetPing);
THorse.Listen( 9000 );
end . Für ein wartbareres Middleware -Ökosystem haben wir offizielle Middlewares in separate Repositories eingebaut:
| Middleware | Delphi | Lazarus |
|---|---|---|
| Pferd/Json | ✔️ | ✔️ |
| Pferd/Basic-Auth | ✔️ | ✔️ |
| Pferd/Kors | ✔️ | ✔️ |
| Pferd/Stream | ✔️ | ✔️ |
| Pferd/Jwt | ✔️ | ✔️ |
| Pferd/Ausnahme | ✔️ | ✔️ |
| Pferd/Logger | ✔️ | ✔️ |
| Pferd/Komprimierung | ✔️ | ✔️ |
Dies ist eine Liste von Middlewares, die von der Pferdegemeinschaft erstellt werden. Bitte erstellen Sie eine PR, wenn Sie Ihre sehen möchten!
| Middleware | Delphi | Lazarus |
|---|---|---|
| bitttencourtthulio/etag | ✔️ | ✔️ |
| bittencourtthulio/paginatin | ✔️ | ✔️ |
| bitttencourtthulio/cachecontrol | ✔️ | |
| Gabrielbaltazar/Gbswagger | ✔️ | |
| Willhubner/Socketio | ✔️ | |
| dliocode/ratelimit | ✔️ | |
| dliocode/Verlangsamung | ✔️ | |
| Giorgiobazzo/Upload | ✔️ | |
| dliocode/query | ✔️ | |
| Carloshe/HealthCheck | ✔️ | |
| CARLOSHE/STATICFILES | ✔️ | |
| Cachopaweb/Horse-Server-Static | ✔️ | ✔️ |
| Arvanus/Pferdempfänger-Logger | ✔️ | ✔️ |
| Claudneysessa/Horse-Csresponsepagination | ✔️ | |
| Claudneysessa/Horse-XsuperObjects | ✔️ | |
| Andre-DJSystem/Pferdeträger-Auth | ✔️ | ✔️ |
| Andre-DJSystem/Pferde-Manipulat-Equest | ✔️ | ✔️ |
| Andre-DJSystem/Pferde-Manipulat-Reaktion | ✔️ | ✔️ |
| Antoniojmsjr/Horse-Ipgeolocation | ✔️ | |
| ANTONIOJMSJR/HORSE-XMLDOC | ✔️ | |
| Isaquepinheiro/Horse-Jsonbr | ✔️ | |
| Iagoocesaar/Horse-JsonInterceptor | ✔️ | |
| DLIOCODE/Pferdedatalogger | ✔️ | |
| Marcobreveglieri/Pferd-Prometheus-Metrics | ✔️ |
Horse arbeitet mit Delphi 11 Alexandria, Delphi 10.4 Sydney, Delphi 10.3 Rio, Delphi 10.2 Tokio, Delphi 10.1 Berlin, Delphi 10 Seattle, Delphi XE8 und Delphi XE7.
Horse ist kostenlos und Open-Source-Software, die im Rahmen der MIT-Lizenz lizenziert ist.