File tree Expand file tree Collapse file tree 3 files changed +4
-1
lines changed
src/main/kotlin/com/github/mduesterhoeft/router Expand file tree Collapse file tree 3 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 66.project
77.classpath
88
9+ * .iml
910.idea /
1011out /
1112
Original file line number Diff line number Diff line change @@ -33,4 +33,6 @@ package com.github.mduesterhoeft.router
3333 .firstOrNull { it.key.toLowerCase() == httpHeader.toLowerCase() }
3434 ?.value
3535 }
36+
37+ public fun getHeader (httpHeader : String ) = getHeaderCaseInsensitive(httpHeader)
3638 }
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import kotlin.reflect.jvm.reflect
1414
1515abstract class RequestHandler : RequestHandler <ApiRequest , ApiResponse > {
1616
17- val objectMapper: ObjectMapper = jacksonObjectMapper()
17+ open val objectMapper = jacksonObjectMapper()
1818
1919 override fun handleRequest (input : ApiRequest , context : Context ): ApiResponse ? {
2020 log.info(" handling request with method '${input.httpMethod} ' and path '${input.path} ' - Accept:${input.acceptHeader} Content-Type:${input.contentType} $input " )
You can’t perform that action at this time.
0 commit comments