Module: GeminiAi::HTTP

Includes:
HTTPHeaders
Included in:
Client
Defined in:
lib/gemini-ai/http.rb

Instance Method Summary collapse

Instance Method Details

#json_post(path:, parameters:, &callback) ⇒ Object



9
10
11
12
13
# File 'lib/gemini-ai/http.rb', line 9

def json_post(path:, parameters:, &callback)
  conn.post(path) do |req|
    configure_json_post_request(req, parameters, &callback)
  end&.body
end