How to create aspects in ktor and uniformly process parameters
- Dominant language
- Kotlin
- Stars
- 14.5k
- Forks
- 1.3k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 49
Description
I use Ktor version 2.3.13.
I want to implement an aspect feature that can modify the parameter content when the request enters and can obtain and modify the response content before returning the response.
For example, there is an encrypted username in my request parameters, and I want to handle it uniformly. Before getting the parameters in routing, I want to decrypt these encrypted usernames and assign them. How should I do it?
Contributor guide
Research direction
Review Ktor 2.3.13's request parameter and response processing entry points, focusing on how routing accesses parameters and how responses are handled before return. Establish whether existing extension points support uniform parameter decryption and response modification, and document the resulting approach or the required feature scope.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100