package cohttp_static_handler

  1. Overview
  2. Docs

Module Cohttp_static_handler.AssetSource

Sourcemodule What_to_serve : sig ... end
Sourcemodule Kind : sig ... end
Sourcetype t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval local : Kind.t -> What_to_serve.t -> t
Sourceval external_ : url:Uri.t -> Kind.t -> t
Sourceval 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