This class extracted from Spdy3.Reader