code: 9ferno

ref: 57446af9a447c3a81414131f2407a9ca6f6a1a94
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;
};