tabilzad / ktor-docs-plugin

Provides Ktor Swagger support
34 stars 6 forks source link

feat(header-params): Add support for header parameter extraction #29

Closed AlbRoehm closed 1 month ago

AlbRoehm commented 1 month ago

Add functions and data classes for header parameter handling. One missing piece is how to decide weather a header parameter is required. I did not have a good idea how to extract this without adding some kind of annotation.

tabilzad commented 1 month ago

Thanks so much for the PR. Should be good to merge once the test is updated to cover all implementation scenarios. Let me know if you also wanna include parsing standard headers like with call.request.header(HttpHeaders.ContentLength). If not, we I can do it in a separate PR.