These functions will be needed to implement full http api. And having them as member functions helps code reuse.