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 6
6
.project
7
7
.classpath
8
8
9
+ * .iml
9
10
.idea /
10
11
out /
11
12
Original file line number Diff line number Diff line change @@ -33,4 +33,6 @@ package com.github.mduesterhoeft.router
33
33
.firstOrNull { it.key.toLowerCase() == httpHeader.toLowerCase() }
34
34
?.value
35
35
}
36
+
37
+ public fun getHeader (httpHeader : String ) = getHeaderCaseInsensitive(httpHeader)
36
38
}
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import kotlin.reflect.jvm.reflect
14
14
15
15
abstract class RequestHandler : RequestHandler <ApiRequest , ApiResponse > {
16
16
17
- val objectMapper: ObjectMapper = jacksonObjectMapper()
17
+ open val objectMapper = jacksonObjectMapper()
18
18
19
19
override fun handleRequest (input : ApiRequest , context : Context ): ApiResponse ? {
20
20
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