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