forked from
anil.recoil.org/monopam-myspace
My aggregated monorepo of OCaml code, automaintained
1(*---------------------------------------------------------------------------
2 Copyright (c) 2025 Anil Madhavapeddy <anil@recoil.org>. All rights reserved.
3 SPDX-License-Identifier: ISC
4 ---------------------------------------------------------------------------*)
5
6(** Library version and User-Agent header support.
7 Per RFC 9110 Section 10.1.5 and Recommendation #30:
8 Set a default User-Agent to help server-side debugging. *)
9
10(** Library version - update this when releasing new versions *)
11let version = "0.1.0"
12
13(** Library name *)
14let name = "ocaml-requests"
15
16(** Default User-Agent header value.
17 Format follows common conventions: library-name/version (runtime-info)
18 Per RFC 9110 Section 10.1.5, this helps with debugging and statistics. *)
19let user_agent =
20 Printf.sprintf "%s/%s (OCaml %s)" name version Sys.ocaml_version