adk_model_gun_transport (erlang_adk v0.8.0)
View SourceBounded model HTTP/SSE transport backed by Gun.
Ordinary requests reuse the hardened OpenAPI implementation. Streaming requests resolve first, reject non-global addresses by default, connect to the selected address directly, retain the original host for TLS/Host, use Gun flow control, and execute the chunk callback inline for backpressure.
Summary
Functions
-spec request(adk_model_http_transport:handle(), adk_model_http_transport:request()) -> {ok, adk_model_http_transport:response()} | {error, term()}.
-spec stream(adk_model_http_transport:handle(), adk_model_http_transport:request(), adk_model_http_transport:chunk_callback()) -> {ok, adk_model_http_transport:response()} | {error, term()}.