Module Response.Private

Internal functions exposed for use by other modules in the library. These are not part of the public API and may change between versions.

val make : sw:Eio.Switch.t -> status:int -> headers:Headers.t -> body:Eio.Flow.source_ty Eio.Resource.t -> url:string -> elapsed:float -> t

make ~sw ~status ~headers ~body ~url ~elapsed constructs a response. The response will be automatically closed when the switch is released. This function is used internally by the Client module.