Rework of the request scanning and related stream logic.

Signed-off-by: Frank Mertens <frank@cyblogic.de>