make it possible to use caller-specified HTTP object