package cohttp-lwt-jsoo

  1. Overview
  2. Docs
CoHTTP implementation for the Js_of_ocaml JavaScript compiler

Install

Dune Dependency

Authors

Maintainers

Sources

cohttp-4.1.2.tbz
sha256=f027f48e132f214b3e27b63c99b247b150549e70bd6e27ad16da947ed392fa20
sha512=c8fbf840141faecb207af3ad7d2bfcdf8b8bced6c6ca4d5a22b6982d1be13f748fa6e3997c6d97351285cd3a30f57f20fd418b7195a735a13d48ba3bcdf8e23c

doc/cohttp-lwt-jsoo/Cohttp_lwt_jsoo/index.html

Module Cohttp_lwt_jsooSource

HTTP client for JavaScript using XMLHttpRequest.

The Logs source name for this module's logger is "cohttp.lwt.jsoo". To log the current warnings using the browser's console log, you can write a custom reporter or use:

  let reporter = Logs_browser.console_reporter () in
  Logs.set_reporter reporter
Sourcemodule type Params = sig ... end

Configuration parameters for the XmlHttpRequest engines

Build an asynchronous engine with chunked/unchucked response data treated as raw bytes or UTF

Build a synchronous engine with chunked/unchucked response data treated as raw bytes or UTF

The Client module implements an HTTP client interface using asynchronous XmlHttpRequests. The response body is returned in chucked form with 128Kb / chunk. Body data is treated as raw bytes. withCredentials property of XHR is set to false.

The Client_sync module implements an HTTP client interface using synchronous XmlHttpRequests. The response is not chunked and treated as raw bytes. withCredentials property of XHR is set to false.

OCaml

Innovation. Community. Security.