Gemini.Client.HTTP (GeminiEx v0.0.2)

View Source

Unified HTTP client for both Gemini and Vertex AI APIs using Req.

Supports multiple authentication strategies and provides both regular and streaming request capabilities.

Summary

Functions

Make a GET request using the configured authentication.

Make a POST request using the configured authentication.

Make an authenticated HTTP request.

Stream a POST request for Server-Sent Events using configured authentication.

Raw streaming POST with full URL (used by streaming manager).

Stream a POST request with specific authentication configuration.

Functions

get(path, opts \\ [])

Make a GET request using the configured authentication.

post(path, body, opts \\ [])

Make a POST request using the configured authentication.

request(method, path, body, auth_config, opts \\ [])

Make an authenticated HTTP request.

stream_post(path, body, opts \\ [])

Stream a POST request for Server-Sent Events using configured authentication.

stream_post_raw(url, body, headers, opts \\ [])

Raw streaming POST with full URL (used by streaming manager).

stream_post_with_auth(path, body, auth_config, opts \\ [])

Stream a POST request with specific authentication configuration.