adk_openapi_gun_transport (erlang_adk v0.7.0)
View SourceProduction bounded OpenAPI HTTP transport backed by Gun.
The hostname is allow-listed before lookup, every resolved address is checked against the private/link-local policy, and Gun connects to the selected IP address directly. HTTPS keeps the original DNS name for SNI, hostname verification, and the Host header, avoiding a DNS-rebinding window between validation and connect. Responses are accumulated only up to the caller-supplied limit and redirects are never followed.
Summary
Functions
-spec request(adk_openapi_http_transport:handle(), adk_openapi_http_transport:request()) -> {ok, adk_openapi_http_transport:response()} | {error, term()}.