Pass header as the second parameter of mapStream

Sometimes we should check the header first to see whether the stream should be transformed. For instance, if I  need to append a code snippet to every .php files, the header is required.