We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dbb71e commit 10344adCopy full SHA for 10344ad
src/main/kotlin/com/github/mduesterhoeft/router/RequestPredicate.kt
@@ -10,11 +10,13 @@ data class RequestPredicate(
10
var consumes: Set<String> = setOf("application/json", "application/x-protobuf")
11
) {
12
13
- fun consuming(vararg mediaTypes: String) {
+ fun consuming(vararg mediaTypes: String): RequestPredicate {
14
consumes = mediaTypes.toSet()
15
+ return this
16
}
- fun producing(vararg mediaTypes: String) {
17
+ fun producing(vararg mediaTypes: String): RequestPredicate {
18
produces = mediaTypes.toSet()
19
20
21
22
internal fun match(request: APIGatewayProxyRequestEvent) =
0 commit comments