package httpcats

  1. Overview
  2. Docs

Module Httpcats.Miou_flowSource

Miou_flow provides an implementation of Flow.S from a TCP/IP connection and an implementation of Flow.S from a TLS connection (with ocaml-tls). These are the implementations used by the HTTP client and HTTP server implementations.

Sourcemodule TCP : Runtime.Flow.S with type t = Miou_unix.file_descr

A TCP flow which reads into and writes from bigstrings directly (via Unix.read_bigarray and Unix.single_write_bigarray): no intermediate buffer at all.

A TLS flow. ocaml-tls speaks bytes/string, so this one goes through Runtime.Flow.Of_bytes and owns the scratch buffer that implies. Use Runtime.Flow.CHANNEL.make to wrap a Tls_miou_unix.t and Runtime.Flow.CHANNEL.prj to get it back.