mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-08-19 12:06:36 +00:00
implemented uwsgi.rpc jvm function [test]
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
public class rpc {
|
||||
public static Object[] application(java.util.HashMap env) {
|
||||
String rpc_out = uwsgi.rpc("", "reverse", (String) env.get("REQUEST_URI"));
|
||||
|
||||
java.util.HashMap<String, Object> headers = new java.util.HashMap<String, Object>();
|
||||
headers.put("Content-Type", "text/html");
|
||||
|
||||
Object[] response = { 200, headers, "<h1>" + rpc_out + "</h1>"};
|
||||
return response;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user