http wrapper: support node v0.10