adk_openapi_http_transport behaviour (erlang_adk v0.7.0)
View SourceInjected HTTP transport contract for OpenAPI tools.
The request can contain authorization headers resolved inside the bounded OpenAPI worker. Implementations must not log or retain it. A production transport must stream-limit the response to max_response_bytes, enforce the supplied host/scheme policy after DNS resolution, and must not follow redirects when follow_redirects is false.
Summary
Types
-type request() :: #{method := binary(), url := binary(), headers := [{binary(), binary()}], body := binary(), timeout_ms := pos_integer(), max_response_bytes := pos_integer(), follow_redirects := false, allowed_schemes := [binary()], allowed_hosts := [binary()], allow_private_hosts := boolean()}.