public HttpResponse GetResponse() { var response = new HttpResponse( this.Request.ProtocolVersion, this.GetStatusCode(), this.GetContent(), ContentType); foreach (var responseHeader in this.ResponseHeaders) { response.AddHeader(responseHeader.Key, responseHeader.Value); } return response; }
public HttpResponse GetResponse() { var response = new HttpResponse( this.Request.ProtocolVersion, HttpStatusCode.OK, this.Model.ToString(), "text/plain; charset=utf-8"); foreach (var responseHeader in this.ResponseHeaders) { response.AddHeader(responseHeader.Key, responseHeader.Value); } return response; }