Added HTTP environment abstraction.