public Redirect(string location, int code) { redirect = new AdHocRepresentation(c => { c.Response.RedirectLocation = location; c.Response.StatusCode = code; }); }
public override Representation GetRepresentation(HttpContextEx context) { return(Representation.Create(this)); }
public Found(string location) { redirect = new AdHocRepresentation(c => { c.Response.AddHeader("Location", location); c.Response.StatusCode = 302; }); }