Internal implementation of HTTP streams