Closed fengmk2 closed 7 months ago
The recent updates focus on enhancing the handling of HTTP headers within the controller decorator framework. Key modifications include the introduction of a new HeadersParamMeta
class for managing header parameters, updating import statements, and adding support for the HEADERS
type in HTTP parameter processing. These changes streamline header management across various components of the framework, improving both functionality and code organization.
Files | Changes |
---|---|
.../HTTPParam.ts , .../HTTPInfoUtil.ts , .../decorators.test.ts , .../params.test.ts |
Updated import statements, added support and handling for HTTP headers. |
.../HTTPMethodMeta.ts , .../types.ts , .../HTTPMethodRegister.ts , .../AppController.ts |
Introduced HeadersParamMeta class, added HEADERS to HTTPParamType , and integrated headers parameter handling in method signatures and utility functions. |
.../HTTPFooController.ts |
Added IncomingHttpHeaders import and HTTPHeaders decorator to methods. |
🐰✨ Code hops through the gates, Headers fly, neatly in place. A rabbit's touch, so deft and wise, Now the web, through headers, spies. Celebrate, for the code does leap! 🎉 🐇💻
core/controller-decorator/test/http/HTTPMeta.test.ts (2)
`15-15`: The addition of `HeadersParamMeta` aligns well with the PR's objectives to enhance HTTP headers handling. Good job on maintaining clean import organization. --- `23-23`: Updating the `describe` block to include the full path is a thoughtful change that enhances clarity in test reporting.
Summary by CodeRabbit
New Features
Bug Fixes
Tests