package jrw;
+import jrw.util.*;
import java.util.*;
import java.util.function.*;
import java.io.*;
}
public void close() {
+ parse(form, ByteBuffer.wrap(toByteArray()));
}
}
Map<Object, Object> resp = new HashMap<>();
if(req.ihead("Content-Type", "").equals("application/x-www-form-urlencoded")) {
resp.put("jagi.status", "feed-input");
- resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Environment.dispatch(next, req));
+ resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Dispatch.handle(next, req));
resp.put("jagi.input-sink", new Collector(req));
} else {
read(req);
resp.put("jagi.status", "chain");
- resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Environment.dispatch(next, req));
+ resp.put("jagi.next", (Function<Map<Object, Object>, Map<Object, Object>>)env -> Dispatch.handle(next, req));
}
return(resp);
}