Module Openrouter_api.Http

module App_info : sig ... end

App-level attribution and feature-flag headers.

val is_success_status : Cohttp.Response.t -> bool

Check if HTTP response indicates success (2xx status)

val make_headers : api_key:string -> ?app_info:App_info.t -> unit -> Cohttp.Header.t

Build the standard OpenRouter headers (Authorization + Content-Type), plus any app-info headers in app_info.