package cohttp_static_handler

  1. Overview
  2. Docs
module What_to_serve : sig ... end
module Kind : sig ... end
type t
val sexp_of_t : t -> Sexplib0.Sexp.t
val local : Kind.t -> What_to_serve.t -> t
val external_ : url:Uri.t -> Kind.t -> t
val opensearch_xml : template:string -> short_name:string -> description:string -> t

Embed a dynamically created opensearch.xml .

template must be a rooted subpath of the current domain, for instance "https://localhost:8443/?query=searchTerms". Specifically, relative URIs - like "/" - will not work.

https://developer.mozilla.org/en-US/docs/Web/OpenSearch