code: 9ferno

ref: 44ce0097b612a1fefd754065bdf8d9d2e5ef60c8
dir: /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;
};