package piaf

  1. Overview
  2. Docs
An HTTP library with HTTP/2 support written entirely in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

piaf-0.2.0.tbz
sha256=07fa9009a52faeaae6d86116e75007f5279b185c7bc7c95aab9455f2107370fb
sha512=dfde4bd0a5c8a3b795a8e3d6f6e1f9f1864a9eb0a1b96763c17515d771566af7623ca64db671a8dce2c7838dad08d8465db98f5e4f8dcf5e1a386ef5b29da56c

doc/piaf.sendfile/Sendfile/index.html

Module SendfileSource

Sourceval sendfile_once_exn : ?off:int -> len:int -> src:Unix.file_descr -> Unix.file_descr -> int

Calls `sendfile(2)` once.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

Sourceval sendfile_once : ?off:int -> len:int -> src:Unix.file_descr -> Unix.file_descr -> (int, Unix.error) result

Calls `sendfile(2)` once. Returns Unix exceptions in a result type.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

Sourceval sendfile_exn : ?off:int -> ?len:int -> src:Unix.file_descr -> Unix.file_descr -> int

Calls `sendfile(2)`, possibly repeatedly (if EINTR / EAGAIN is returned) until the entire file has been sent.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

Sourceval sendfile : ?off:int -> ?len:int -> src:Unix.file_descr -> Unix.file_descr -> (int, Unix.error) result

Calls `sendfile(2)`, possibly repeatedly (if EINTR is returned) until the entire file has been sent. Returns Unix exceptions in a result type.

  • raises Sys_error

    if `sendfile` is not supported by the platform.

OCaml

Innovation. Community. Security.