Provide Kotlin Extension Functions (with reified type) for GatewayFilterSpec
#1 252 ouverte le 18 août 2019
Métriques du dépôt
- Stars
- (4 284 stars)
- Métriques de merge PR
- (Merge moyen 1j 21h) (18 PRs mergées en 30 j)
Description
GatewayFilterSpec (https://github.com/spring-cloud/spring-cloud-gateway/blob/master/spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/route/builder/GatewayFilterSpec.java) has the Java methods modifyRequestBody and modifyResponseBody with arguments of type Class<T>. It would be nice to have Kotlin Extension Functions with reified types just as implemented by @sdeleuze for the Spring Framework.
Then in Kotlin one could write e.g. modifyResponseBody<String, String> { … } instead of modifyResponseBody(String::class.java, String::class.java) { … }.