development phase suspended
Package p = new Package();
//http://localhost:5000/
Web w = new Web();
w.run(new Configure
{
Port = 5000
});
w.onData += w_onData;
static void w_onData(Web sender, User e)
{
if (e.Query["Groophy"] == "Lifefor")
{
e.Response("Welcome");
}
else
{
e.Response("Access Denied");
}
e.Kill();
}
Web c = new Web();
c.Client(new ConfigureClient
{
Port=5000,
param = new paramst[] { new paramst()
{
var = "Groophy", val="Lifefor"
}},
});
c.onClient += c_onClient;
static void c_onClient(Web sender, System.Net.Http.HttpResponseMessage Context, string response)
{
Console.WriteLine("Reponse: " + response);
}
- Connection with random query(http://localhost:5000/?df=fgv)
- Connection with set query(http://localhost:5000/?Groophy=Lifefor)
~Groophy Lifefor