SwiftDocCFileServerClassFileServerFileServer is a struct simulating a web server behavior to serve files. It is useful to interface a custom schema with WKWebView via WKURLSchemeHandler or WebView via a custom URLProtocol.class FileServerTopicsInitializersinit(baseURL: URL)Initialize a FileServer instance with a base URL.Instance Propertieslet baseURL: URLThe base URL of the server. Example: http://www.example.com.Instance Methodsfunc data(for: URL) -> Data?Returns the data for a given URL.func register(provider: any FileServerProvider, subPath: String) -> BoolRegisters a FileServerProvider to a FileServer objects which can be used to provide content to a local web page served by local content.func response(to: URLRequest) -> (URLResponse, Data?)Returns a tuple with a response and the given data.