Skip to content

Commit

Permalink
eio(client): implement Client.read_fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bikallem committed Jul 25, 2022
1 parent 7c4b2a2 commit 978c822
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cohttp-eio/src/client.ml
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,14 @@ let patch ?version ?headers ?body env sw stream uri =
call ~meth:`PATCH ?version ?headers ?body env sw stream uri

(* Response Body *)
<<<<<<< HEAD

let read_fixed ((response, reader) : Http.Response.t * Buf_read.t) =
Body.read_fixed reader response.headers

let read_chunked : response -> (Body.chunk -> unit) -> Http.Header.t option =
fun (response, reader) f -> Body.read_chunked reader response.headers f
=======
let read_fixed ((response, reader) : Http.Response.t * Reader.t) =
Body.read_fixed reader response.headers
>>>>>>> bd44e31b (eio(client): implement Client.read_fixed)

0 comments on commit 978c822

Please sign in to comment.