void Initialise(ReplyCode code, ContentType type) { Code = code; Type = type; IsChunkedHandler = false; ChunkedHandlerDelegate = null; IsReferral = false; Encoding = new UTF8Encoding(); }
public static Reply Referral(string uri) { Reply reply = new Reply(); reply.Initialise(ReplyCode.Found, ContentType.Plain); reply.IsReferral = true; reply.Location = uri; reply.Body = ""; return reply; }