- 17 12月, 2016 1 次提交
-
-
由 Rossen Stoyanchev 提交于
Apply the new HttpHeaders#getAcceptLanguageAsLocale() in places where it was hardcoded or defaulting. Apply ServerHttpResponse.encodeUrl in RequestContext. Issue: SPR-15024
-
- 15 12月, 2016 2 次提交
-
-
由 Arjen Poutsma 提交于
-
由 Arjen Poutsma 提交于
-
- 14 12月, 2016 1 次提交
-
-
由 Arjen Poutsma 提交于
This commit makes it possible for handler functions to return asynchronous status codes and headers, by making HandlerFunction.handle return a Mono<ServerResponse> instead of a ServerResponse. As a consequence, all other types that deal with HandlerFunctions (RouterFunction, HandlerFilterFunction, etc.) had to change as well. However, when combining the above change with method references (a very typical use case), resulting signatures would have been something like: ``` public Mono<ServerResponse<Mono<Person>>> getPerson(ServerRequest request) ``` which was too ugly to consider, especially the two uses of Mono. It was considered to merge ServerResponse with the last Mono, essentialy making ServerResponse always contain a Publisher, but this had unfortunate consequences in view rendering. It was therefore decided to drop the parameterization of ServerResponse, as the only usage of the extra type information was to manipulate the response objects in a filter. Even before the above change this was suggested; it just made the change even more necessary. As a consequence, `BodyInserter` could be turned into a real `FunctionalInterface`, which resulted in changes in ClientRequest. We did, however, make HandlerFunction.handle return a `Mono<? extends ServerResponse>`, adding little complexity, but allowing for future `ServerResponse` subtypes that do expose type information, if it's needed. For instance, a RenderingResponse could expose the view name and model. Issue: SPR-14870
-
- 02 12月, 2016 1 次提交
-
-
由 Arjen Poutsma 提交于
This commit adds the ability to serve Resources (static files) through a RouterFunction. Two methods have been added to RouterFunctions: one that exposes a given directory given a path pattern, and a generic method that requires a lookup function. Issue: SPR-14913
-
- 27 10月, 2016 1 次提交
-
-
由 Juergen Hoeller 提交于
-
- 20 10月, 2016 3 次提交
-
-
由 Arjen Poutsma 提交于
This commit adds a bodyToMono and bodyToFlux convenience method to ClientResponse/ServerRequest, similar to the body(Publisher) method that is on ClientRequest/ServerResponse.
-
由 Arjen Poutsma 提交于
This commit changes web.reactive.function to reflect the introduction of the new WebClient. Changes include: - Request -> ServerRequest - Response -> ServerResponse - FilterFunction -> HandlerFilterFunction - StrategiesSupplier -> HandlerStrategies
-
由 Arjen Poutsma 提交于
This commit moves the web.reactive.function.[BodyInserter|BodyExtractor] to http.codec, so that they can be used from the client as well. Furthermore, it parameterized both inserter and extractor over ReactiveHttpOutputMessage and ReactiveHttpInputMessage respectively, so that they can be limited to only be used on the client or server.
-
- 19 9月, 2016 1 次提交
-
-
由 Arjen Poutsma 提交于
-
- 17 9月, 2016 4 次提交
-
-
由 Arjen Poutsma 提交于
-
由 Arjen Poutsma 提交于
Refactor BodyInsertor to expose insertion logic directly, rather than exposing a writer function and supplier.
-
由 Arjen Poutsma 提交于
-
由 Arjen Poutsma 提交于
This commit extracts the response body insertion logic into a separate strategy interface: BodyPopulator. Standard populators can be found in BodyPopulators.
-
- 12 9月, 2016 2 次提交
-
-
由 Arjen Poutsma 提交于
Merged all *Response implementations into one DefaultResponses class
-
由 Arjen Poutsma 提交于
This commit introduces template rendering support in the web.reactive package, through a Response.render method and a Rendering interface.
-
- 09 9月, 2016 2 次提交
-
-
由 Arjen Poutsma 提交于
-
由 Arjen Poutsma 提交于
- Changed Response.sse methods to allow for specific Publisher types to be returned in Response.
-
- 07 9月, 2016 1 次提交
-
-
由 Arjen Poutsma 提交于
Two changes to web.reactive.function: - Changed Response.stream method to allow for specific Publisher types to be returned in Response. - Router now stores HttpMessageReader|Writer retrieved from Configuration in the attributes as supplier, not as stream, to allow for multiple reads.
-
- 01 9月, 2016 1 次提交
-
-
由 Arjen Poutsma 提交于
This commit introduces a new, functional web programming model in the org.springframework.web.reactive.function package. The key types are: - Request and Response are new Java 8-DSLs for access to the HTTP request and response - HandlerFunction represents a function to handle a request to a response - RoutingFunction maps a request to a HandlerFunction - FilterFunction filters a routing as defined by a RoutingFunction - RequestPredicate is used by Router to create RoutingFunctions - RequestPredicates offers common RequestPredicate instances
-