Example usage for Java org.springframework.web.reactive.function.server ServerResponse fields, constructors, methods, implement or subclass
The text is from its open source code.
HttpHeaders | headers() Return the headers of this response. |
HeadersBuilder> | notFound() Create a builder with a HttpStatus#NOT_FOUND 404 Not Found status. |
BodyBuilder | ok() Create a builder with the status set to HttpStatus#OK 200 OK . |
BodyBuilder | status(HttpStatus status) Create a builder with the given HTTP status. |
BodyBuilder | status(int status) Create a builder with the given HTTP status. |
HttpStatus | statusCode() Return the status code of this response. |
Mono | writeTo(ServerWebExchange exchange, Context context) Write this response to the given web exchange. |