@Component public class FunctionController extends Object
| Constructor and Description |
|---|
FunctionController(RequestProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> |
form(org.springframework.web.context.request.WebRequest request) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> |
get(org.springframework.web.context.request.WebRequest request) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>> |
getStream(org.springframework.web.context.request.WebRequest request) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> |
post(org.springframework.web.context.request.WebRequest request,
String body) |
reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>> |
postStream(org.springframework.web.context.request.WebRequest request,
String body) |
public FunctionController(RequestProcessor processor)
@PostMapping(path="/**",
consumes={"application/x-www-form-urlencoded","multipart/form-data"})
@ResponseBody
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> form(org.springframework.web.context.request.WebRequest request)
@PostMapping(path="/**")
@ResponseBody
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> post(org.springframework.web.context.request.WebRequest request,
@RequestBody(required=false)
String body)
@PostMapping(path="/**",
produces="text/event-stream")
@ResponseBody
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>> postStream(org.springframework.web.context.request.WebRequest request,
@RequestBody(required=false)
String body)
@GetMapping(path="/**") @ResponseBody public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<?>> get(org.springframework.web.context.request.WebRequest request)
@GetMapping(path="/**",
produces="text/event-stream")
@ResponseBody
public reactor.core.publisher.Mono<org.springframework.http.ResponseEntity<org.reactivestreams.Publisher<?>>> getStream(org.springframework.web.context.request.WebRequest request)
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.