API Reference infusion_runtime v#0.1.0

Copy Markdown View Source

Modules

The behaviour every SDK generated by Infusion shares.

Stands in for a schema the spec refers to but doesn't define: the JSON is kept as it is.

Client settings, merged from layers: the SDK's generated defaults, then the application environment, then the options of a single call.

The error every SDK call returns as {:error, %Infusion.Runtime.Error{}}.

Encodes nested data as application/x-www-form-urlencoded, the way Stripe and Twilio expect it.

Turns a list operation into a lazy stream of every item, fetching pages as they are needed.

Sends one API call: builds the HTTP request from an operation, retries it when that is safe, and decodes the response.

An incremental parser for Server-Sent Events (text/event-stream), as the HTML standard describes them.

One event: data is always a string; event, id and retry may be nil.

Decodes JSON into the structs of a generated SDK.