package textrazor

  1. Overview
  2. Docs
type t = {
  1. secure : bool;
    (*

    Whether to use SSL when querying TextRazor.

    *)
  2. use_eu_endpoint : bool;
    (*

    Whether to use the European endpoint only, for GPDR purposes.

    *)
}

Data structure for client-level configuration.

val create : ?secure:bool -> ?use_eu_endpoint:bool -> unit -> t

Creates a new configuration.

Default values are {secure = true; use_eu_endpoint = false}.

val url : t -> ?path:string -> ?query:(string * string list) list -> unit -> Uri.t

Builds a TextRazor URL according to the given configuration.