Adapt to Cohttp 0.10.0 interface

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #4 from johnelse/cohttp-0.10.0

Adapt to Cohttp 0.10.0 interface