Rossen Stoyanchev
ec5f99f981
Add mutate() to RequestMappingInfo
...
Closes gh-26428
2021-01-26 11:44:20 +00:00
Rossen Stoyanchev
aa7584d252
Support for Jetty 10
...
Closes gh-26123
2021-01-21 20:16:21 +00:00
Rossen Stoyanchev
cfae40afb4
Return 415 for form data with @RequestBody in WebFlux
...
Closes gh-26386
2021-01-14 21:23:49 +00:00
Rossen Stoyanchev
994a35d691
Mutated ServerHttpRequest returns native request correctly
...
Closes gh-26304
2021-01-04 21:40:25 +00:00
Mattison chao
bd2edf26df
Fix implementation of isOpen() in ReactorNettyWebSocketSession
...
See gh-26332 for details.
Closes gh-26341
2021-01-04 17:13:39 +01:00
Sam Brannen
ef6a582c78
Clean up warnings in Gradle build
2020-12-15 22:47:02 +01:00
Rossen Stoyanchev
a11d1c8510
Enrich WebSocketHandler context
...
Closes gh-26210
2020-12-15 21:34:16 +00:00
mplain
a1d134b086
Add missing Kotlin extensions for WebClient.ResponseSpec
...
Closes gh-26030
2020-12-07 10:34:39 +01:00
Rossen Stoyanchev
e7b0b65244
Support for MediaType mappings in ResourceWebHandler
...
Closes gh-26170
2020-11-30 17:16:55 +00:00
Rossen Stoyanchev
23006d417b
Deprecate context method in WebClient
...
See gh-25710
2020-11-23 21:46:14 +00:00
Rossen Stoyanchev
c4d7e6ff46
Fix checkstyle violations
...
See gh-26117
2020-11-19 21:25:21 +00:00
Spindler, Justin
922d5d271a
Add ResponseSpec#toEntityFlux overload with BodyExtractor
...
See gh-26114
2020-11-19 21:12:56 +00:00
Rossen Stoyanchev
8c3a05bbcf
Allow "*" for Access-Control-Expose-Headers
...
Closes gh-26113
2020-11-19 09:20:55 +00:00
Rossen Stoyanchev
42d3bc47c9
toEntityFlux methods apply error status handling
...
Closes gh-26069
2020-11-12 18:43:36 +00:00
Rossen Stoyanchev
94fcb37d30
Re-order methods in DefaultResponseSpec
...
See gh-26069
2020-11-12 18:43:36 +00:00
Rossen Stoyanchev
ba9325446c
Optimize WebClientUtils
...
Use constant Predicate for exception wrapping.
Use ResponseEntity constructor instead of builder.
See gh-26069
2020-11-12 18:43:36 +00:00
Rossen Stoyanchev
2899652d8e
Fix checkstyle violation
2020-11-09 22:30:35 +00:00
Rossen Stoyanchev
560a504a83
Polishing in DefaultWebClient
2020-11-09 22:07:31 +00:00
Rossen Stoyanchev
79f79e9306
WebClient method to populate the Reactor Context
...
The alternative is to use a filter but this makes it a little easier
and also guarantees that it will be downstream from all filters
regardless of their order, and therefore the Context will be visible
to all of them.
Closes gh-25710
2020-11-09 22:07:31 +00:00
Rossen Stoyanchev
6bb3ad793e
Add isOpen to WebSocketSession in WebFlux
...
Closes gh-26043
2020-11-09 14:06:43 +00:00
Juergen Hoeller
e592634290
Polishing
2020-11-09 13:32:41 +01:00
Rossen Stoyanchev
41bdde5d6b
Polishing
2020-11-03 19:31:02 +00:00
Rossen Stoyanchev
2e2d662158
Add toEntityFlux methods
...
Closes gh-26023
2020-11-03 19:31:02 +00:00
Arjen Poutsma
885a5048c1
Copy default headers, cookies in WebClient builder
...
This commit makes copies of the default headers and cookies when a
WebClient is built, so that subsequent changes to these do not affect
previously built clients.
Closes: gh-25992
2020-10-29 13:37:25 +01:00
Arjen Poutsma
e981bf34b3
Removed unused sample code
2020-10-29 13:37:25 +01:00
Rossen Stoyanchev
24cef14683
Merge branch '5.2.x' into master
2020-10-27 11:21:41 +00:00
Rossen Stoyanchev
bb4e802af5
Full header support HTTP HEAD Resource requests
...
Allow the body to be written in order for all headers to be set
as they would be on HTTP GET. The body content is ignored as a
lower level.
See gh-25976
2020-10-27 11:14:37 +00:00
Rossen Stoyanchev
d91b66a04c
Allow Resource to add headers for range requests
...
Closes gh-25976
2020-10-27 10:15:56 +00:00
Sam Brannen
d1e6883d5d
Fix issues in Javadoc
2020-10-27 11:05:31 +01:00
Sam Brannen
705cf09ad7
Merge branch '5.2.x'
2020-10-26 15:05:35 +01:00
Sam Brannen
449377908f
Fix JUnit 4 to AssertJ migration bugs
...
The migration from JUnit 4 assertions to AssertJ assertions resulted in
several unnecessary casts from int to long that actually cause
assertions to pass when they should otherwise fail.
This commit fixes all such bugs for the pattern `.isNotEqualTo((long)`.
2020-10-26 14:53:09 +01:00
Sébastien Deleuze
efe933ad83
Polish Coroutines detection
2020-10-25 18:33:57 +01:00
Arjen Poutsma
417e7e03d4
Introduce RouterFunction attributes
...
This commit introduces support for router function attributes, a
way to associate meta-data with a route.
Closes: gh-25938
2020-10-23 14:58:49 +02:00
Juergen Hoeller
621295dbd8
Deprecate StringUtils.isEmpty(Object) and replace remaining usage
...
Closes gh-25945
2020-10-21 16:09:26 +02:00
Juergen Hoeller
23211c784e
Upgrade to Netty 4.1.53 and Tomcat 9.0.39
...
Correct version declaration for Apache HttpClient 5 and its reactive module.
2020-10-16 12:20:15 +02:00
Rossen Stoyanchev
a2ff139edd
Resolve UriComponentsBuilder argument with contextPath
...
Closes gh-25822
2020-10-15 22:08:32 +01:00
Sébastien Deleuze
3ed8813bbf
Upgrade to Coroutines 1.4.0-M1 and use awaitSingle()
...
This commit raises the minimum Coroutines version supported
to 1.4.0-M1 and above, and changes usages of awaitFirst() or
awaitFirstOrNull() to awaitSingle() or awaitSingleOrNull()
to fix gh-25007.
Closes gh-25914
Closes gh-25007
2020-10-13 15:26:39 +02:00
Juergen Hoeller
e9cd37a4ee
Merge branch '5.2.x'
...
# Conflicts:
# spring-webflux/src/main/java/org/springframework/web/reactive/result/method/InvocableHandlerMethod.java
2020-10-13 00:25:04 +02:00
Juergen Hoeller
f3f19504c6
Polishing
2020-10-13 00:21:07 +02:00
Juergen Hoeller
72b2dda17f
Avoid creation of unused logger instance in AbstractMediaTypeExpression
...
Closes gh-25901
2020-10-13 00:20:06 +02:00
Juergen Hoeller
a9d458f5fc
Merge branch '5.2.x'
2020-10-12 19:54:21 +02:00
Juergen Hoeller
e176c4e799
Polishing
2020-10-12 19:40:50 +02:00
Juergen Hoeller
66a67ec807
Polishing
2020-10-12 18:26:14 +02:00
Juergen Hoeller
50b9542402
Apply handleMissingValue in case of null conversion result as well
...
Closes gh-23939
2020-10-12 18:07:17 +02:00
Rossen Stoyanchev
5b1b20c8c0
Polishing and minor refactoring
...
See gh-25884
2020-10-12 11:55:20 +01:00
Rossen Stoyanchev
e73e489fd8
Remove use of MonoProcessor.fromSinks
...
See gh-25884
2020-10-09 20:46:21 +01:00
Sébastien Deleuze
cdd48ddd7f
Improve Coroutines support consistency
2020-10-09 12:51:08 +02:00
Sébastien Deleuze
94a42a3086
Support suspending handler methods in Spring MVC
...
This commit adds support for Kotlin Coroutines suspending functions to
Spring MVC, by converting those to a Mono that can then be handled by
the asynchronous request processing feature.
It also optimizes Coroutines detection with the introduction of an
optimized KotlinDetector.isSuspendingFunction() method that does not
require kotlin-reflect.
Closes gh-23611
2020-10-09 12:25:32 +02:00
Rossen Stoyanchev
d49a7a105d
Fix failing tests from Reactor snapshot changes
...
See gh-25884
2020-10-08 18:38:05 +01:00
Sébastien Deleuze
7d7ed88739
Provide WebClient#exchange() alternative for Coroutines
...
This commit adds awaitExchange { } and
exchangeToFlow { } extensions as Coroutines variants for
exchangeToMono() and exchangeToFlux().
Closes gh-25751
2020-10-07 11:09:12 +02:00