shithub: purgatorio

ref: a411870ee4640241e3c494367d922847da84f972
dir: purgatorio/appl/charon/cookiesrv.m

View raw version
Cookiesrv: module {
	PATH: con "/dis/charon/cookiesrv.dis";

	Client: adt {
		fd: ref Sys->FD;
		set: fn(c: self ref Client,host, path, cookie: string);
		getcookies: fn(c: self ref Client, host, path: string, secure: int): string;
	};

	# save interval is in minutes
	start: fn(path: string, saveinterval: int): ref Client;
};