The handler: a function from a web Request to a Response that serves one AnyFS store as WebDAV on the POSIX view of it. It answers OPTIONS, GET, HEAD, PUT, DELETE, MKCOL, COPY, MOVE, PROPFIND, PROPPATCH, LOCK and UNLOCK, checks the host, the credentials and the locks before it touches the store, takes every guard of a write from the request (If-Match, If-None-Match, If) and gives it to the store as the expectation of the write where the store can hold it, and says in X-Anyfs-Fidelity how each answer was carried out. It holds no socket: a test calls it with a Request, and the server of the physical layer hosts it.
type HandlerOptions = {
/** Who may ask. There is no default: a server that asks nobody says so with `noAuthentication…(1129 characters)
typeHandlerOptions= {
/** Who may ask. There is no default: a server that asks nobody says so with `noAuthentication`. */readonlyauthenticator:Authenticator;
/** The host names a request may name in `Host`, without ports; the loopback names by default. */readonlyhosts?:readonlystring[];
/** The address the server answers below, `/` by default. */readonlybase?:string;
readonlylimits?:Limits;
/** What to do with the files a desktop makes by itself: `allow` by default. */readonlyjunk?:Junk;
/** Whether an empty collection is kept as an object: `markers` by default. */readonlydirectories?:Directories;
/** What to do with a name that is not NFC: turn it into NFC (the default) or refuse it. */readonlyunicode?:Unicode;
/** Whether LOCK and UNLOCK are answered (class 2): on by default. */readonlylocks?:boolean;
/** The realm of the challenge. */readonlyrealm?:string;
/** The time in milliseconds; the clock by default. */readonlyclock?: () =>number;
/** Told of every request when it is answered. */readonlyonEvent?: (event:ServeEvent) =>void;
};