Interface McpAsyncHttpClientRequestCustomizer
- All Known Implementing Classes:
DelegatingMcpAsyncHttpClientRequestCustomizer,McpAsyncHttpClientRequestCustomizer.Noop
public interface McpAsyncHttpClientRequestCustomizer
Customize
HttpRequest.Builder before executing the request, in either SSE or
Streamable HTTP transport.
When used in a non-blocking context, implementations MUST be non-blocking.
- Author:
- Daniel Garnier-Moiroux
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher<HttpRequest.Builder>customize(HttpRequest.Builder builder, String method, URI endpoint, String body, McpTransportContext context) fromSync(McpSyncHttpClientRequestCustomizer customizer) Wrap a sync implementation in an async wrapper.
-
Field Details
-
NOOP
-
-
Method Details
-
customize
org.reactivestreams.Publisher<HttpRequest.Builder> customize(HttpRequest.Builder builder, String method, URI endpoint, @Nullable String body, McpTransportContext context) -
fromSync
Wrap a sync implementation in an async wrapper.Do NOT wrap a blocking implementation for use in a non-blocking context. For a blocking implementation, consider using
Schedulers.boundedElastic().
-