Current section
Files
Jump to
Current section
Files
lib/aludel/interfaces/adapters/http.ex
defmodule Aludel.Interfaces.Adapters.Http do
@moduledoc """
Generic HTTP client adapter behaviour.
"""
@doc """
Performs an HTTP operation.
Parameters and return values are intentionally generic to support
different use cases (LLM calls, REST APIs, webhooks, etc.).
Implementations should document their specific contracts.
"""
@callback request(url_or_spec :: term(), payload :: term(), opts :: keyword()) ::
{:ok, term()} | {:error, term()}
end