Example #1
0
        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()))
            };
        }
Example #2
0
        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")
            };
        }
Example #3
0
        public RsJson(RsWrap origin, DcJson jsonDocument)
        {
            _origin  = origin;
            _jsonDoc = jsonDocument;

            headers = new List <KeyValuePair <string, string> >()
            {
                new KeyValuePair <string, string>("Content-Type", "application/json")
            };
        }
Example #4
0
 public RqFile(RqWrap src, RsWrap dest, string rootFileDirectory)
 {
     _src  = src;
     _dest = dest;
     root  = rootFileDirectory;
 }
Example #5
0
 public RsWithHeaders(RsWrap origin, IEnumerable <KeyValuePair <string, string> > headers)
 {
     _origin = origin;
     headers.ToList().ForEach(p => _headers.Add(p.Key, p.Value));
 }
Example #6
0
 public RsText(RsWrap origin, Text text)
 {
     _origin = origin;
     _text   = text;
 }
Example #7
0
 public RsDocument(RsWrap origin, DcText document)
 {
     _origin = origin;
     _doc    = document;
 }