static void server_OnHttpRequest(object sender, HttpRequestArgs e) { e.Response.Status = SAEAHTTPD.HttpStatusCode.OK; e.Response.ReasonPhrase = "OK"; using (TextWriter writer = new StreamWriter(e.Response.OutputStream)) { writer.Write("Hello, world!"); } }
void client_OnFinishedRequest(object sender, HttpRequestArgs args) { if (OnHttpRequest != null) { OnHttpRequest(this, args); } }