Adapt to cohttp 0.10.x api