Skip to content

Commit eb349be

Browse files
committed
Fix Kotlin example for filtering handler functions
Closes gh-27337
1 parent 4b3e861 commit eb349be

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/docs/asciidoc/web/webmvc-functional.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ as the following example shows:
103103

104104

105105
If you register the `RouterFunction` as a bean, for instance by exposing it in a
106-
@Configuration class, it will auto-detected by the servlet, as explained in <<webmvc-fn-running>>.
106+
@Configuration class, it will be auto-detected by the servlet, as explained in <<webmvc-fn-running>>.
107107

108108

109109

@@ -117,7 +117,7 @@ access to the HTTP request and response, including headers, body, method, and st
117117

118118

119119
[[webmvc-fn-request]]
120-
=== `ServerRequest`
120+
=== ServerRequest
121121

122122
`ServerRequest` provides access to the HTTP method, URI, headers, and query parameters,
123123
while access to the body is provided through the `body` methods.
@@ -165,7 +165,7 @@ val map = request.params()
165165

166166

167167
[[webmvc-fn-response]]
168-
=== `ServerResponse`
168+
=== ServerResponse
169169

170170
`ServerResponse` provides access to the HTTP response and, since it is immutable, you can use
171171
a `build` method to create it. You can use the builder to set the response status, to add response
@@ -714,10 +714,10 @@ For instance, consider the following example:
714714
ServerRequest.from(it)
715715
.header("X-RequestHeader", "Value").build()
716716
}
717-
POST("/person", handler::createPerson)
718-
after { _, response -> // <2>
719-
logResponse(response)
720-
}
717+
}
718+
POST("/person", handler::createPerson)
719+
after { _, response -> // <2>
720+
logResponse(response)
721721
}
722722
}
723723
----

0 commit comments

Comments
 (0)