示例#1
0
 public override void SendStatus(int statusCode, string statusDescription)
 {
     _status.Append(statusCode.ToString());
     _status.Append(" ");
     _status.Append(statusDescription);
     _statusSet = true;
 }
示例#2
0
 public override void SendCalculatedContentLength(long contentLength)
 {
     if (!_headersSent)
     {
         _headers.Append("Content-Length: ");
         _headers.Append(contentLength.ToString(CultureInfo.InvariantCulture));
         _headers.Append("\r\n");
         _contentLengthSent = true;
     }
 }