package cohttp-lwt-jsoo
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=9883607813bb0d2b1677ce2062340d51016a6e1f0a059f92d9b608fe25563007
sha512=ca81321149a3a8836bcb6f177bbb48acd2ba3ad75cccf86153c8a2c2a8657060f6e0846c4af40b04029eafa040f25ba4c1e41b90a90840532dd8a3d6cfdea53b
doc/cohttp-lwt-jsoo/Cohttp_lwt_jsoo/index.html
Module Cohttp_lwt_jsoo
Source
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
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.