Add stream_server read head function