Example #1
0
        public override void Write(IHttpWriter writer)
        {
            writer.WriteFile(_file.Path);

            WriteFileHeadContinuation.WriteHeaders(writer, _file);
            writer.WriteResponseCode(HttpStatusCode.OK);
        }
Example #2
0
        public override void Write(IHttpWriter writer)
        {
            WriteHeaders(writer, _file);

            if (_status == HttpStatusCode.OK)
            {
                writer.AppendHeader(HttpResponseHeaders.ContentLength, _file.Length().ToString());
            }

            writer.WriteResponseCode(_status);
        }
 public override void Write(IHttpWriter writer)
 {
     writer.WriteResponseCode(_status, _reason);
 }