Refactor: Divide local file and http file in different thread.