From f978ea649ba205ed12e9f52d1f2006b959f107cb Mon Sep 17 00:00:00 2001 From: c-cube Date: Tue, 23 May 2023 21:25:40 +0000 Subject: [PATCH] deploy: 997f7aa86801bd33e44329faaccbcad7393d05ae --- dev/tiny_httpd/Tiny_httpd_server/Response/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/tiny_httpd/Tiny_httpd_server/Response/index.html b/dev/tiny_httpd/Tiny_httpd_server/Response/index.html index 653a5c6f..242f2725 100644 --- a/dev/tiny_httpd/Tiny_httpd_server/Response/index.html +++ b/dev/tiny_httpd/Tiny_httpd_server/Response/index.html @@ -3,7 +3,7 @@ ?headers:Headers.t -> code:Response_code.t -> byte_stream -> - t

Same as make_raw but with a stream body. The body will be sent with the chunked transfer-encoding.

val make : + t

Same as make_raw but with a stream body. The body will be sent with the chunked transfer-encoding.

val make_void : ?headers:Headers.t -> code:int -> unit -> t

Return a response without a body at all.

  • since NEXT_RELEASE
val make : ?headers:Headers.t -> (body, Response_code.t * string) Stdlib.result -> t

make r turns a result into a response.

  • make (Ok body) replies with 200 and the body.
  • make (Error (code,msg)) replies with the given error code and message as body.
val make_string :