We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4d22c4 commit 480d5e6Copy full SHA for 480d5e6
src/server/ocsigen_response.ml
@@ -2,6 +2,10 @@ open Cohttp
2
open Lwt.Syntax
3
4
module Body = struct
5
+ (* TODO: Avoid copies by passing buffers directly. This API was choosen
6
+ because it is closer to [Lwt_stream] which was used before. This type
7
+ forces data to be copied from buffers (usually [bytes]) to immutable
8
+ strings, which is unecessary. *)
9
type t = ((string -> unit Lwt.t) -> unit Lwt.t) * Transfer.encoding
10
11
let make encoding writer : t = writer, encoding
0 commit comments