Class FunctionController
java.lang.Object
org.springframework.cloud.function.web.flux.FunctionController
- Author:
- Dave Syer, Mark Fisher, Oleg Zhurakousky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>form(org.springframework.web.server.ServerWebExchange request) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>get(org.springframework.web.server.ServerWebExchange request) org.reactivestreams.Publisher<?>getStream(org.springframework.web.server.ServerWebExchange request) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>multipart(org.springframework.web.server.ServerWebExchange request) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>org.reactivestreams.Publisher<?>postStream(org.springframework.web.server.ServerWebExchange request, reactor.core.publisher.Flux<String> body)
-
Constructor Details
-
FunctionController
public FunctionController()
-
-
Method Details
-
form
@PostMapping(path="/**", consumes="application/x-www-form-urlencoded") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> form(org.springframework.web.server.ServerWebExchange request) -
multipart
@PostMapping(path="/**", consumes="multipart/form-data") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> multipart(org.springframework.web.server.ServerWebExchange request) -
post
@PostMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> post(org.springframework.web.server.ServerWebExchange request, @RequestBody(required=false) String body) -
postStream
@PostMapping(path="/**", produces="text/event-stream") @ResponseBody public org.reactivestreams.Publisher<?> postStream(org.springframework.web.server.ServerWebExchange request, @RequestBody(required=false) reactor.core.publisher.Flux<String> body) -
getStream
@GetMapping(path="/**", produces="text/event-stream") @ResponseBody public org.reactivestreams.Publisher<?> getStream(org.springframework.web.server.ServerWebExchange request) -
get
@GetMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> get(org.springframework.web.server.ServerWebExchange request)
-