Class DefaultMcpRegistryClient.Builder
java.lang.Object
dev.langchain4j.mcp.registryclient.DefaultMcpRegistryClient.Builder
- Enclosing class:
DefaultMcpRegistryClient
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Sets custom headers.headersSupplier(Supplier<Map<String, String>> headers) Supplies custom headers once per request.httpClient(HttpClient httpClient) logRequests(boolean logRequests) logResponses(boolean logResponses)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseUrl
-
httpClient
-
headers
Sets custom headers. The map is copied for each request and is never modified by the client. -
headersSupplier
Supplies custom headers once per request. The returned map is copied before protocol defaults are added, so it may be immutable. Changes returned by the supplier take effect on subsequent requests. -
logRequests
-
logResponses
-
build
-