rstoyanchev
b13f86cf46
Fix failing tests in spring-test after recent changes
...
See gh-33639
2024-10-07 21:09:10 +01:00
rstoyanchev
2389748e25
Parameterize URI parsing tests
...
Closes gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
d6fcad9ad7
Add logging to RfcUriParser
...
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
ef0a21ec7a
Update documentation for URI parsing types
...
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
6c62965cbb
Remove regular expressions from UriComponentsBuilder
...
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
bbb53d03c4
Pluggable URI parsing, use RFC parser by default
...
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
52805da733
Add URI parser based on syntax in RFC 3986
...
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
10f45223aa
Rename UrlParser to WhatWgUrlParser
...
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
6ba3bb54a0
Add efficient isUnreservedOrSubDelimiter method
...
isUnreserved and isSubDelimiter are usually checked together. It helps
to have a shortcut with an efficient lookup.
See gh-33639
2024-10-07 18:35:03 +01:00
rstoyanchev
92308ac83f
Polishing in UrlParser
2024-10-07 18:35:02 +01:00
Juergen Hoeller
c10a7f300c
Merge branch '6.1.x'
2024-10-07 10:20:38 +02:00
Juergen Hoeller
3dac274d20
Avoid synchronization for delegate initialization
...
Closes gh-33656
2024-10-07 10:19:16 +02:00
Khyojun
f86bc1cbe8
Polish CorsConfiguration
...
Closes gh-33650
2024-10-07 09:11:36 +02:00
Simon Baslé
6c5e63e446
Merge branch '6.1.x'
2024-10-03 16:33:40 +02:00
Simon Baslé
b54420f8aa
Include argument name in MethodArgumentTypeMismatchException message
...
Closes gh-33573
2024-10-03 16:32:29 +02:00
Juergen Hoeller
30dc86810e
Upgrade to Jackson 2.18
...
Closes gh-33615
2024-09-30 13:53:22 +02:00
Juergen Hoeller
b59d0a396e
Add equals/hashCode methods to ServerSentEvent
...
Closes gh-33606
2024-09-30 11:22:43 +02:00
Juergen Hoeller
8ab965c981
Merge branch '6.1.x'
...
# Conflicts:
# spring-web/src/main/java/org/springframework/web/method/annotation/AbstractNamedValueMethodArgumentResolver.java
# spring-webflux/src/main/java/org/springframework/web/reactive/result/method/annotation/AbstractNamedValueArgumentResolver.java
2024-09-30 11:17:55 +02:00
Juergen Hoeller
87157d3200
Polishing
2024-09-30 11:13:50 +02:00
Juergen Hoeller
95f181352f
Defensively check MethodParameter.getMethod() in KotlinDelegate
...
Closes gh-33609
2024-09-30 11:13:26 +02:00
Juergen Hoeller
5326640f79
Initialize application context with initializer-given ServletContext
...
Closes gh-22319
2024-09-26 18:31:02 +02:00
Yanming Zhou
8941e2876e
Replace 'e.g.' with 'for example' in documentation and comments
...
Closes gh-33515
2024-09-26 14:11:17 +02:00
rstoyanchev
dea4f71846
Update contribution
...
Closes gh-33090
2024-09-25 16:09:01 +01:00
cfredri4
883f123583
Use only one timeout in JdkClientHttpRequest
...
Previously, a timeout was set both on HttpRequest, and used on
httpClient.sendAsync().get(). This leads to inconsistent behaviour
depending on which timeout gets triggered first.
See gh-33090
2024-09-25 16:09:01 +01:00
rstoyanchev
7051cddcf7
Align OutputStreamPublisher's
...
Align internal handling and contracts. The core copy could do without
those contracts, but it helps with alignment, and it's internal to
the implementation.
Closes gh-33592
2024-09-25 11:42:26 +01:00
rstoyanchev
f6c31bb6c3
Align OutputStreamPublisher's
...
Update constructors to match and drop unnecessary factory methods.
See gh-33592
2024-09-25 11:42:26 +01:00
rstoyanchev
113b430fab
Align OutputStreamPublisher's
...
Apply recent nullability changes, and formatting differences.
See gh-33592
2024-09-25 11:42:26 +01:00
Sébastien Deleuze
81a66a0334
Add an AbstractGenericHttpMessageConverter constructor
...
This commit adds a new
AbstractGenericHttpMessageConverter(Charset, MediaType...)
constructor, similar to the one present in
AbstractHttpMessageConverter.
Closes gh-33563
2024-09-24 19:40:15 +02:00
Sam Brannen
66a518abd5
Merge branch '6.1.x'
2024-09-24 12:23:47 +02:00
Sam Brannen
88905ea20d
Upgrade to Apache HttpClient 5.4
...
This commit also updates the external Javadoc link to avoid the following
warning in the build.
URL https://hc.apache.org/httpcomponents-client-5.2.x/current/httpclient5/apidocs/package-list was redirected to https://hc.apache.org/httpcomponents-client-5.4.x/current/httpclient5/apidocs/package-list
Closes gh-33587
2024-09-24 12:20:44 +02:00
Tran Ngoc Nhan
c85050eb43
Consistently use CharSequence.isEmpty() for emptiness checks
...
Closes gh-33577
2024-09-23 17:10:21 +02:00
Johnny Lim
3ba9d35e22
Polish
...
Closes gh-33566
2024-09-20 10:58:37 +02:00
rstoyanchev
4706ebc81e
Minor refactoring in UrlHandlerFilter
...
See gh-33565
2024-09-19 11:55:53 +01:00
rstoyanchev
2090ece62a
UrlHandlerFilter ignores trailing slash in contextPath
...
Closes gh-33565
2024-09-19 11:55:25 +01:00
Simon Baslé
c832d5f496
Polishing contribution
...
Fixes gh-33556
2024-09-18 11:44:29 +02:00
Carl Magnuson
453e7961a8
Add read timeout setter on HttpComponentsClientHttpRequestFactory
...
This commit adds support for HttpComponentsClientHttpRequestFactory to
set a read timeout, used on the underlying client as a RequestTimeout.
This brings the HttpComponentsClientHttpRequestFactory into alignment
with JDK, Jetty, OkHttp3, Reactor and SimpleClient
ClientHttpRequestFactory implementations.
See gh-33556
2024-09-18 11:44:29 +02:00
Sébastien Deleuze
d3755aba06
Add RestClient.Builder#messageConverters(List)
...
This commit also introduces the validation of the RestClient
message converters for both variants.
Closes gh-33536
2024-09-13 16:00:38 +02:00
Brian Clozel
0a001482c3
Merge branch '6.1.x'
2024-09-13 15:53:18 +02:00
Brian Clozel
5efb385e64
Read Expires cookie attribute in HttpComponents connector
...
Prior to this commit, the HttpComponents implementation for the
`WebClient` would only consider the max-age attribute of response
cookies when parsing the response. This is not aligned with other client
implementations that consider the max-age attribute first, and then the
expires if the former was not present. The expires date is then
translated into a max-age duration. This behavior is done naturally by
several implementations.
This commit updates the `HttpComponentsClientHttpResponse` to do the
same.
Fixes gh-33157
2024-09-13 15:49:06 +02:00
Juergen Hoeller
042346aa6a
Harmonize Reactor client class names within the http.client package
...
Closes gh-33382
2024-09-11 16:27:56 +02:00
rstoyanchev
1ff2678147
Add UrlHandlerFilter for WebFlux
...
Closes gh-32830
2024-09-11 11:51:21 +01:00
rstoyanchev
9d57c0ba89
Add compare method to ETag
...
Closes gh-33385
2024-09-10 12:29:33 +01:00
rstoyanchev
19700d07b1
Quote ETag if not quoted in HttpHeaders#setETag
...
This aligns HttpHeaders with other places like ServletWebRequest and
DefaultWebExchange where an ETag is accepted as input.
It also allows us to remove quoting from places that delegate to
HttpHeaders#setETag since it now does that internally.
Closes gh-33412
2024-09-10 09:17:56 +01:00
rstoyanchev
3dd4a8350a
Update more places to use quoteETagIfNecessary
...
Closes gh-33412
2024-09-10 08:56:03 +01:00
rstoyanchev
1b26122e64
Polishing and minor refactoring
...
Update checks whether quoting is needed to be more complete
than what we've used so far, making sure the there is both
opening and closing quotes independent of each other.
See gh-33412
2024-09-10 08:56:01 +01:00
hyunmin0317
80b264ba82
Refactor eTag formatting into utility method
...
See gh-33412
2024-09-10 08:55:39 +01:00
rstoyanchev
d2b25c0378
Merge branch '6.1.x'
2024-09-09 11:56:21 +01:00
rstoyanchev
3d1bf28445
Refine how async request state lock is obtained
...
Rather than waiting indefinitely, keep checking if the state
changed from ASYNC (e.g. to ERROR).
Closes gh-33421
2024-09-09 11:54:38 +01:00
Sébastien Deleuze
5e3c5d466f
Avoid collecting Flux elements in KotlinSerializationJsonEncoder
...
Closes gh-33428
2024-09-05 14:47:49 +02:00
Sébastien Deleuze
2f56a59ba0
Merge branch '6.1.x'
2024-09-04 16:13:04 +02:00