public HttpResponseEmpty(HttpServer server, int code) : base(server) { Head.StatusCode = code; }
public HttpResponseString(HttpServer server, string content) : base(server) { buffer = Encoding.Default.GetBytes(content); Head.ContentType = "text/plain"; }
public HttpResponseNoAnswer(HttpServer server) : base(server) { }
public HttpResponseStream(HttpServer server, MemoryStream stream) : base(server) { this.Head.ContentType = "image/png"; this.stream = stream; }
public HttpResponseRedirect(HttpServer server, string location) : base(server, 307) { Head.Location = location; }
public HttpResponse(HttpServer server) { this.server = server; Head = new HttpResponseHead(); }