예제 #1
0
 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!");
     }
 }
예제 #2
0
 void client_OnFinishedRequest(object sender, HttpRequestArgs args)
 {
     if (OnHttpRequest != null) {
         OnHttpRequest(this, args);
     }
 }