Resp and Reader/Writer changes to 0.12.0

I have a more comprehensive fix for this shortly; hacking on train



> On 5 Nov 2014, at 08:14, Thomas Leonard <notifications@github.com> wrote:
> 
> In async/cohttp_async.ml:
> 
> > @@ -113,14 +113,20 @@ module Body = struct
> >    let write body response wr =
> >      match body with
> >      | `Empty -> return ()
> > -    | `String s -> Response.write_body response wr s
> > +    | `String s ->
> > +      Response.write (fun writer ->
> > +        Response.write_body writer s
> > +      ) response wr
> I don't know whether this is correct in context, but the direct replacement for Response.write_body is Response.make_body_writer + Response.write_body.
> 
> Response.write also calls write_header and write_footer, so this is a change in behaviour. Same applies to the change below.
> 
> —
> Reply to this email directly or view it on GitHub.
>