Package io.gorules.zen.loader
Class ApiLoaderConfig
java.lang.Object
io.gorules.zen.loader.ApiLoaderConfig
Configuration for ApiDecisionLoader.
Supports flexible header configuration for any HTTP headers you need.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ApiLoaderConfig with flexible header configuration.static enumCache eviction policy for API loader. -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiLoaderConfig.BuilderCreate a new builder with the given base URL.Get all headers (static + dynamic) for a request.
-
Method Details
-
builder
Create a new builder with the given base URL.- Parameters:
baseUrl- Base URL for API (e.g., "https://api.example.com/decisions")- Returns:
- Builder instance
-
getAllHeaders
Get all headers (static + dynamic) for a request.- Returns:
- Combined headers map
-