The 'dyn_file_func' has priority over filesystem

If 'dyn_file_func' is set, the server will  use it instead of reading from filesystem. If 'dyn_file_func' is None, server will search filesystem.