1. 25 10月, 2016 8 次提交
  2. 24 10月, 2016 2 次提交
  3. 22 10月, 2016 5 次提交
    • R
      Fix failing tests · aea3a750
      Rossen Stoyanchev 提交于
      Issue: SPR-14772, SPR-14803
      aea3a750
    • R
      Early registration of WriteListener · 5c9c5e0b
      Rossen Stoyanchev 提交于
      At present Tomcat expects a WriteListener to be registered immediately
      on the initial thread so for the time being this commit ensures the
      WriteListener is registered unconditionally for every request.
      
      Issue: SPR-14772, SPR-14803
      5c9c5e0b
    • B
      Remove factory methods from WebReactiveConfigurer · 61cf9fdd
      Brian Clozel 提交于
      This commit removes factory methods for `RequestMappingHandlerMapping`
      and `RequestMappingHandlerAdapter` from `WebReactiveConfigurer`.
      `WebReactiveConfigurer` should promote only common customizations;
      those factory methods should be overridden when extending
      `WebReactiveConfigurationSupport`, in advanced configuration scenarios.
      61cf9fdd
    • R
      Thread-safe reactive ServerHttpRequest · e3673d43
      Rossen Stoyanchev 提交于
      This commit replaces the lazy URI and headers initialization in the
      reactive ServerHttpRequest in favor of eager initialization at
      construction time. Both the URI and headers are nearly guaranteed to
      be accessed for every request (URI for application path, headers for
      "Origin" header).
      
      Query params are still lazily parsed but parsing is idemptotent and
      in the unlikely case of concurrent access (it's the framework that
      typically accesses query params) it maybe parsed twice but should
      be side effect free still.
      
      Cookies are also parsed lazily and since we delegate to the "native"
      request, it depends on the underlying runtime whether synchronization
      is needed. This commit adds synchronization for the HttpServletRequest.
      At present RxNetty, Reactor, and Undertow implementations provide
      thread-safe access to cookies.
      e3673d43
    • R
      0e886abf
  4. 21 10月, 2016 10 次提交
  5. 20 10月, 2016 14 次提交
    • S
      HttpClient instance should be shared for each call · 8143e5fe
      soldierkam 提交于
      8143e5fe
    • A
      Add bodyToMono/bodyToFlux convenience methods · fa9cc1eb
      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.
      fa9cc1eb
    • S
      Upgrade to Reactor Core 3.0.3.BUILD-SNAPSHOT · 2a279b70
      Sebastien Deleuze 提交于
      2a279b70
    • S
      Upgrade to RxJava 1.2.1 · b961a31c
      Sebastien Deleuze 提交于
      b961a31c
    • B
      Update reference doc after WebClient changes · 31af6783
      Brian Clozel 提交于
      Issue: SPR-14827
      31af6783
    • A
      Various improvements to web.reactive.function · 59e43269
      Arjen Poutsma 提交于
      This commit introduces the following changes to web.reactive.function:
      
      - Added RouterFunction.andRoute(), a combination of RouterFunction.and()
      with RouterFunctions.route()
      - ServerRequest.pathVariable() returns String instead of
      Optional<String>. An exception is thrown if the variable is not present.
      - Added HandlerFilterFunction.andThen and HandlerFilterFunction.apply()
      59e43269
    • S
      Use the official RxJava to Reactive Streams adapter · 921bf5fb
      Sebastien Deleuze 提交于
      This commit removes the usage of Reactor adapters (about to
      be moved from Reactor Core to a new Reactor Adapter module).
      Instead, RxReactiveStreams is now used for adapting RxJava
      1 and Flowable methods are used for RxJava 2.
      
      Issue: SPR-14824
      921bf5fb
    • A
      Align web.reactive.function with WebClient · 7e907c1e
      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
      7e907c1e
    • A
      Align Reactive WebClient with web.reactive.function · 0cfb6b37
      Arjen Poutsma 提交于
      This commit refactors the web client to be more similar to
      web.reactive.function. Changes include:
      
      - Refactor ClientWebRequest to immutable ClientRequest with builder and
         support for BodyInserters.
      - Introduce ClientResponse which exposes headers, status, and support
         for reading from the body with BodyExtractors.
      - Removed ResponseErrorHandler, in favor of having a ClientResponse
         with "error" status code (i.e. 4xx or 5xx). Also removed
         WebClientException and subclasses.
      - Refactored WebClientConfig to WebClientStrategies.
      - Refactored ClientHttpRequestInterceptor to ExchangeFilterFunction.
      - Removed ClientWebRequestPostProcessor in favor of
         ExchangeFilterFunction, which allows for asynchronous execution.
      
      Issue: SPR-14827
      0cfb6b37
    • A
      Moved BodyExtractor and BodyInserter to http.codec · dc1926a8
      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.
      dc1926a8
    • R
      Merge pull request #1211 from sdeleuze/SPR-14798 · ed6c5330
      Rossen Stoyanchev 提交于
      ed6c5330
    • R
      Polish · 72397e35
      Rossen Stoyanchev 提交于
      Issue: SPR-14798
      72397e35
    • S
      Better encapsulation for CORS default permit configuration · 50f2cda0
      Sebastien Deleuze 提交于
      This commit also improves CorsRegistration Javadoc.
      
      Issue: SPR-14798
      50f2cda0
    • V
      Handle AsyncListener.onComplete in Servlet adapter · 25e7cd57
      Violeta Georgieva 提交于
      Typically the Mono<Void> from the HttpHandler also reflects the
      completion of the request and response body processors and at that
      point invoking AsyncContext#complete() from HandlerResultSubscriber
      should be sufficient.
      
      This commit explicitly propagates the AsyncListener.onComplete event
      to the request and response body processors for added safety.
      Technically as mentioned those processors should have completed but
      depending on how the controller is written there is a possibility
      the body processors may not have completed.
      
      Issue: SPR-14772
      25e7cd57
  6. 18 10月, 2016 1 次提交