From 59db1512c381d12443dc8e9cb472295903125965 Mon Sep 17 00:00:00 2001 From: c-cube Date: Wed, 9 Aug 2023 03:13:40 +0000 Subject: [PATCH] deploy: 925a503604374a492cb244b1243d6af29aefd2fc --- dev/tiny_httpd/Tiny_httpd_io/Writer/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tiny_httpd/Tiny_httpd_io/Writer/index.html b/dev/tiny_httpd/Tiny_httpd_io/Writer/index.html index 57a60060..a3a6719c 100644 --- a/dev/tiny_httpd/Tiny_httpd_io/Writer/index.html +++ b/dev/tiny_httpd/Tiny_httpd_io/Writer/index.html @@ -1,2 +1,2 @@ -Writer (tiny_httpd.Tiny_httpd_io.Writer)

Module Tiny_httpd_io.Writer

A writer abstraction.

type t = {
  1. write : Output.t -> unit;
}

Writer.

A writer is a push-based stream of bytes. Give it an output channel and it will write the bytes in it.

This is useful for responses: an http endpoint can return a writer as its response's body, and output into it as if it were a regular out_channel, including controlling calls to flush.

  • since 0.14
val make : write:(Output.t -> unit) -> unit -> t
val write : Output.t -> t -> unit

Write into the channel.

val empty : t

Empty writer, will output 0 bytes.

val of_string : string -> t

A writer that just emits the bytes from the given string.

\ No newline at end of file +Writer (tiny_httpd.Tiny_httpd_io.Writer)

Module Tiny_httpd_io.Writer

A writer abstraction.

type t = {
  1. write : Output.t -> unit;
}

Writer.

A writer is a push-based stream of bytes. Give it an output channel and it will write the bytes in it.

This is useful for responses: an http endpoint can return a writer as its response's body; the writer is given access to the connection to the client and can write into it as if it were a regular out_channel, including controlling calls to flush. Tiny_httpd will convert these writes into valid HTTP chunks.

  • since 0.14
val make : write:(Output.t -> unit) -> unit -> t
val write : Output.t -> t -> unit

Write into the channel.

val empty : t

Empty writer, will output 0 bytes.

val of_string : string -> t

A writer that just emits the bytes from the given string.

\ No newline at end of file