Comments (5)
Boa tarde... poderia dar um exemplo de uso? E qual o erro você tem hoje?
Porque na versão atual, já é possível o uso, se eu entendi bem:
from horse.
Boa tarde!
A ideia seria viabilizar a seguinte situação:
program Teste;
{$IFDEF FPC}
{$MODE DELPHI}{$H+}
{$MODESWITCH ANONYMOUSFUNCTIONS+}
{$ENDIF}
interface
implementation
uses
SysUtils;
begin
...
THorse.Listen(9000,
procedure
begin
WriteLn(Format('Server active on port %d', [THorse.Port]));
end);
end;
end.
Com o que sugeri (que foi o que eu implementei aqui no meu checkout local do Horse (trunk)), eu consigo usar procedure anônima direto dentro do Listen, o que é possível com o FPC 3.2.2.
from horse.
Assim, legal... manda um Pull request entao pra gente, o que acha? dai seu nome aparece como contribuidor tambem do projeto
from horse.
Seria uma honra!
Vou preparar aqui!
from horse.
Vlw
from horse.
Related Issues (20)
- Link que lista os middleware no readme não existe mais.
- [Dúvida] - Horse callback HOT 1
- Horse.Provider.FPC.Daemon doesn't stop properly HOT 3
- Comportamento inadequado entre Group.Prefix e Route
- Erro de compilação com Lazarus 3.0, FPC 3.2.2, Ubuntu 23.10 e Horse Trunk HOT 2
- Erro de execução com Lazarus 3.0, FPC 3.2.2, Ubuntu 23.10 e Horse Trunk HOT 5
- THorse unity tests - Mocks HOT 1
- Problema com o Res.SendFile, usando THorse.Get('*', function)
- EHorseException.ToJSONObject
- Headers THorseRequest HOT 1
- Requisição GET com Body HOT 1
- EHorseCallbackInterrupted retornando 404. HOT 2
- Problemas ao responder arquivos estáticos HOT 1
- Delphi 11 + Horse + ReactJs + Axios HOT 4
- [Lazarus] - Erro na criação de app Daemon.
- Ao realizar mais de 50 requisições ao mesmo tempo, esta gerando o erro: i/O error 103 HOT 1
- Isso já foi ajustado pelo Alexandre Magno, mas ainda não subimos a alteração. Em breve esse problema de congelamento estará resolvido HOT 1
- erro ao usar o Basic Authenticator HOT 2
- erro ao obter via horse HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from horse.