package ocsigenserver

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ocsigen_response.BodySource

Sourcetype t
Sourceval empty : t
Sourceval of_string : string -> t
Sourceval make : Cohttp.Transfer.encoding -> ((string -> unit Lwt.t) -> unit Lwt.t) -> t

make writer makes a reponse body whose content is generated by writer write. write str blocks until str is fully written.

Sourceval of_cohttp : encoding:Cohttp.Transfer.encoding -> Cohttp_lwt.Body.t -> t
Sourceval write : t -> (string -> unit Lwt.t) -> unit Lwt.t
Sourceval transfer_encoding : t -> Cohttp.Transfer.encoding