public RsWithSession(RsWrap origin, Session session) { _origin = origin; _session = session; headers = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Set-Cookie", string.Format("{0}={1}", _session.CookieName(), _session.Id())) }; }
public RsHtml(RsWrap origin, DcHtml htmlDocument) { _origin = origin; _htmlDoc = htmlDocument; headers = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Content-Type", "text/html;charset=utf-8") }; }
public RsJson(RsWrap origin, DcJson jsonDocument) { _origin = origin; _jsonDoc = jsonDocument; headers = new List <KeyValuePair <string, string> >() { new KeyValuePair <string, string>("Content-Type", "application/json") }; }
public RqFile(RqWrap src, RsWrap dest, string rootFileDirectory) { _src = src; _dest = dest; root = rootFileDirectory; }
public RsWithHeaders(RsWrap origin, IEnumerable <KeyValuePair <string, string> > headers) { _origin = origin; headers.ToList().ForEach(p => _headers.Add(p.Key, p.Value)); }
public RsText(RsWrap origin, Text text) { _origin = origin; _text = text; }
public RsDocument(RsWrap origin, DcText document) { _origin = origin; _doc = document; }