Class FunctionController
java.lang.Object
org.springframework.cloud.function.web.flux.FunctionController
@Component
@EnableConfigurationProperties(FunctionHttpProperties.class)
public class FunctionController
extends Object
- Author:
- Dave Syer, Mark Fisher, Oleg Zhurakousky
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> reactor.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) reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>>
-
Constructor Details
-
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) -
put
@PutMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> put(org.springframework.web.server.ServerWebExchange request, @RequestBody(required=false) String body) -
delete
@DeleteMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> delete(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)
-