Feature/route level middlewares - #511
Merged
regyssilveira merged 3 commits intoJul 10, 2026
Merged
Conversation
…t and add sample and unit tests
…level middlewares, chunked transfer, and kernel tuning
…e-level middlewares as completed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Feat/Route-level Middleware Chains & Documentation Refactoring
📋 Descrição
Este Pull Request introduz o suporte nativo a Cadeias de Middlewares por Rota (Route-level Middleware Chains) de forma declarativa e 100% retrocompatível. Além disso, reestrutura e atualiza toda a documentação técnica e Habilidades de IA (Agent Skills) do framework.
🛠️ Alterações Realizadas
1. Core e Roteador (Cadeias de Middlewares por Rota)
THorseCore: Adicionado o métodoRegisterRouteMiddlewaree novas sobrecargas para todos os verbos HTTP (All,Get,Post,Put,Delete,Patch,Head,Query) aceitando a cadeia de middlewares.array of THorseCallback): Implementado no lugar deTArray<T>para permitir a compilação perfeita com inicializadores literais de colchetes[...]em compiladores antigos (como Delphi 10 Seattle e 11 Alexandria).IHorseCoreRoute<T>,THorseCoreRoute<T>eTHorseCoreGroupRoute<T>sincronizadas para refletir o parâmetroarray of THorseCallbackpreservando o encadeamento e isolamento de grupos.2. Projeto de Exemplo (Samples)
ConsoleRouteMiddlewareslocalizado emsamples/delphi/console_route_middlewares/demonstrando o uso estático, fluente e em grupos do novo recurso.samples/delphi/Samples.groupproj.3. Reestruturação e Enriquecimento da Documentação
Global➔Grupo➔Rota➔Handler) no índice global (doc/index.mdedoc/index.pt-BR.md).sysctl.conf) recomendada em produção para o reactorepollsob tráfego massivo.doc/skills/horse-routing/SKILL.mdedoc/skills/horse-middlewares/SKILL.md) com as novas diretrizes do fluxo em cebola.🧪 Testes de Validação Executados
1. Suíte de Testes no Windows (DUnitX / Console)
Testamos todas as combinações de provedores em 4 compiladores com 100% de aprovação:
2. Testes de Integração no Linux (Docker / Lazarus FPC)
epolldo Linux: SUCESSOINTEGRATION TEST: SUCCESS (ALL MIDDLEWARES)