Signatures.FetchThe Cosmetyc library has ports both for native compilation and compilation to JavaScript. As such, core modules can't directly fetch a webpage as the underlying mechanism will be very different in both contexts. Instead, we thus provide this module signature, both implemented in Cosmetyc_native and Cosmetyc_js: any module needing to fetch resources from the Internet can base on such a module as a parameter.
module Promise : sig ... endFetching URL is not always done synchronously: they are usually embedded within a promise.