Skip to content

Commit a3b0cfa

Browse files
committed
Simplify customizeRequest() Javadoc body
1 parent e35dacc commit a3b0cfa

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/client/transport/HttpClientSseClientTransport.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -242,15 +242,8 @@ public Builder requestBuilder(HttpRequest.Builder requestBuilder) {
242242

243243
/**
244244
* Applies the given consumer to the shared {@link HttpRequest.Builder} <b>once,
245-
* at build time</b>. Any headers set here (e.g., {@code Authorization}) are
246-
* frozen into the template and copied to every subsequent request via
247-
* {@code requestBuilder.copy()}. They <b>cannot be updated</b> after the
248-
* transport is built.
249-
* <p>
250-
* For dynamic, per-request customization (e.g., OAuth token refresh), use
251-
* {@link #httpRequestCustomizer(McpSyncHttpClientRequestCustomizer)} or
252-
* {@link #asyncHttpRequestCustomizer(McpAsyncHttpClientRequestCustomizer)}
253-
* instead.
245+
* at build time</b>. Any headers set here are frozen into the template and
246+
* <b>cannot be updated</b> after the transport is built.
254247
* @param requestCustomizer the consumer to customize the HTTP request builder
255248
* @return this builder
256249
* @deprecated Use

mcp-core/src/main/java/io/modelcontextprotocol/client/transport/HttpClientStreamableHttpTransport.java

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -708,15 +708,8 @@ public Builder requestBuilder(HttpRequest.Builder requestBuilder) {
708708

709709
/**
710710
* Applies the given consumer to the shared {@link HttpRequest.Builder} <b>once,
711-
* at build time</b>. Any headers set here (e.g., {@code Authorization}) are
712-
* frozen into the template and copied to every subsequent request via
713-
* {@code requestBuilder.copy()}. They <b>cannot be updated</b> after the
714-
* transport is built.
715-
* <p>
716-
* For dynamic, per-request customization (e.g., OAuth token refresh), use
717-
* {@link #httpRequestCustomizer(McpSyncHttpClientRequestCustomizer)} or
718-
* {@link #asyncHttpRequestCustomizer(McpAsyncHttpClientRequestCustomizer)}
719-
* instead.
711+
* at build time</b>. Any headers set here are frozen into the template and
712+
* <b>cannot be updated</b> after the transport is built.
720713
* @param requestCustomizer the consumer to customize the HTTP request builder
721714
* @return this builder
722715
* @deprecated Use

0 commit comments

Comments
 (0)