Reverse "Correct generic type in BodyExtractor for form data"

This commit reverses 9efa976d31, and adds
code comments to highlight why some Body[Inserter|Extractor] instances
returned from Body[Inserters|Extractors] use
ServerHttp[Request|Response] instead of using
Reactive[Input|Output]Message.
This commit is contained in:
Arjen Poutsma
2017-02-09 17:23:15 +01:00
parent 11efbaead9
commit 6dd0e6bfac
5 changed files with 19 additions and 4 deletions

View File

@@ -207,7 +207,7 @@ public class BodyExtractorsTests {
@Test
public void toFormData() throws Exception {
BodyExtractor<Mono<MultiValueMap<String, String>>, ReactiveHttpInputMessage> extractor = BodyExtractors.toFormData();
BodyExtractor<Mono<MultiValueMap<String, String>>, ServerHttpRequest> extractor = BodyExtractors.toFormData();
DefaultDataBufferFactory factory = new DefaultDataBufferFactory();
DefaultDataBuffer dataBuffer =