Rossen Stoyanchev
ab94c7c016
Update WebMvcConfigurer Javadoc for message converters
...
Closes gh-26388
2021-02-05 13:04:44 +00:00
Rossen Stoyanchev
eb7b206142
Expose ChannelId from ReactorNettyWebSocketSession
...
Closes gh-26485
2021-02-05 11:53:46 +00:00
Rossen Stoyanchev
0d16c9100a
MIME types by Class for Encoder, Decoder, HttpMessageReader|Writer
...
Closes gh-26212
2021-02-04 16:12:57 +00:00
Rossen Stoyanchev
6fde28be98
Fix checkstyle violations
2021-02-03 12:24:45 +00:00
Rossen Stoyanchev
df4ba742cb
Apply global CORS settings to static resources in WebFlux
...
Closes gh-26495
2021-02-03 11:17:59 +00:00
Rossen Stoyanchev
996c86f448
Suppress PREFLIGHT_AMBIGUOUS_MATCH if matches have no CORS config
...
Closes gh-26490
2021-02-03 10:43:08 +00:00
Rossen Stoyanchev
95752ef1c9
Improve handling for pre-flight requests
...
1. Update the HandlerMapping contract to state that CORS checks are expected
to be applied before returning a handler.
2. DispatcherHandler checks explicitly for pre-flight requests or CORS failed
requests and skips handling for both. Technically no change since
AbstractHandlerMapping already returns a NO_OP_HANDLER for those cases.
The purpose however is for the DispatcherHandler to also guarantee more
explicitly that no such handling can take place for such cases.
As one consequence, this makes it possible to invoke the DispatcherHandler from
anywhere in the WebFilter chain in order to "handle" a pre-flight request, and
then skip the rest of the WebFilter chain.
See gh-26257
2021-01-29 22:12:10 +00:00
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