Browse Source

Correct `encode` Javadoc for `UriComponents` and `UriComponentsBuilder`

Closes gh-36040
Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
pull/36089/head
Tran Ngoc Nhan 1 month ago committed by Sébastien Deleuze
parent
commit
b8ed4f2ba8
  1. 4
      framework-docs/modules/ROOT/partials/web/web-uris.adoc

4
framework-docs/modules/ROOT/partials/web/web-uris.adoc

@ -268,9 +268,9 @@ response to a browser. @@ -268,9 +268,9 @@ response to a browser.
`UriComponentsBuilder` exposes encoding options at two levels:
* {spring-framework-api}/web/util/UriComponentsBuilder.html#encode--[UriComponentsBuilder#encode()]:
* {spring-framework-api}/web/util/UriComponentsBuilder.html#encode()[UriComponentsBuilder#encode()]:
Pre-encodes the URI template first and then strictly encodes URI variables when expanded.
* {spring-framework-api}/web/util/UriComponents.html#encode--[UriComponents#encode()]:
* {spring-framework-api}/web/util/UriComponents.html#encode()[UriComponents#encode()]:
Encodes URI components _after_ URI variables are expanded.
Both options replace non-ASCII and illegal characters with escaped octets. However, the first option

Loading…
Cancel
Save