ccproxy.services.handler_config¶
ccproxy.services.handler_config
¶
Handler configuration for request handling.
PluginTransformerProtocol
¶
Bases: Protocol
Protocol for plugin-based transformers with header and body methods.
SSEParserProtocol
¶
Bases: Protocol
Protocol for SSE parsers to extract a final JSON response.
Implementations should return a parsed dict for the final response, or None if no final response could be determined.
HandlerConfig
dataclass
¶
HandlerConfig(
request_adapter=None,
response_adapter=None,
request_transformer=None,
response_transformer=None,
supports_streaming=True,
preserve_header_case=False,
sse_parser=None,
format_context=None,
)
Processing pipeline configuration for HTTP/streaming handlers.
This config only contains universal processing concerns, not plugin-specific parameters like session_id or access_token.
Following the Parameter Object pattern, this groups related processing components while maintaining clean separation of concerns. Plugin-specific parameters should be passed directly as method parameters.