public static FakeServerCache factory(string fname)
{
- if (cache == null) {
- cache = new Gee.HashMap<string,FakeServerCache>();
- }
- if (cache.has_key(fname)) {
- return cache.get(fname);
- }
+ //if (cache == null) {
+ // cache = new Gee.HashMap<string,FakeServerCache>();
+ // }
+ // if (cache.has_key(fname)) {
+// return cache.get(fname);
+// }
var el = new FakeServerCache(fname);
- cache.set(fname, el);
+// cache.set(fname, el);
return el;
}
// Return the input stream
return ret;
}
- /
+
public void run(WebKit.URISchemeRequest request, Cancellable? cancellable)
{
-
-
-
- run_impl.begin(cancellable, (obj, res) => {
- InputStream? stream = null;
+ var stream = new GLib.MemoryInputStream.from_data (this.data.data, GLib.free);
+ request.finish(stream,
+ this.size,
+ this.content_type);
+
+
+
+ return;
+
+ //run_impl.begin(cancellable, (obj, res) => {
+ /*InputStream? stream = null;
try {
stream = this.run_impl.end(res);
});
+ */
}
}