Browse Source

Merge branch '5.1.x'

pull/23158/head
Sebastien Deleuze 7 years ago
parent
commit
ea97fefa98
  1. 9
      src/docs/asciidoc/web/webflux-functional.adoc

9
src/docs/asciidoc/web/webflux-functional.adoc

@ -164,6 +164,15 @@ URI location = ... @@ -164,6 +164,15 @@ URI location = ...
ServerResponse.created(location).build();
----
Depending on the codec used, it is possible to pass hint parameters to customize how the
body is serialized or deserialized. For example, to specify a https://wiki.fasterxml.com/JacksonJsonViews[Jackson JSON view]:
====
[source,java]
----
ServerResponse.ok().hint(Jackson2CodecSupport.JSON_VIEW_HINT, MyJacksonView.class).body(...);
----
====
[[webflux-fn-handler-classes]]

Loading…
Cancel
Save