Refactor requests parsing to pass ByteIterator as method argument.