Beispiel #1
0
 public void WriteHeaders(HTTPStatus.Code StatusCode, string contentType = "")
 {
     this.OutputStream.Write("HTTP/1.0 " + HTTPStatus.Headers[(int)StatusCode]);
     if (contentType != "" && contentType != null)
     {
         this.OutputStream.WriteLine("Content-Type: " + contentType);
     }
     this.OutputStream.WriteLine("Connection: close");
     this.OutputStream.WriteLine("");
 }
Beispiel #2
0
 public static int ValueOf(HTTPStatus.Code code)
 {
     return((int)code);
 }