This exception can be imported using:
from skipole import ServeFile
It has arguments:
ServeFile(server_file, status='200 OK', headers=None, enable_cache=None, mimetype=None)
This is an Exception class that, being raised, sends the static server file to the client browser.
ServeFile has arguments:
server_file - a string or pathlib.Path object point at a server file.
status - The status field returned.
headers - The headers returned, if given the remaining arguments are ignored.
enable_cache - Set to True or False, if True headers will specify the file can be cached on the client, if False headers will request not cached.
mimetype - Set the mimetype of the file to be returned, if not given the mimetype will be guessed.