Example #1
0
        public OwinResponse(ResultDelegate responseCallback)
        {
            _responseCallback = responseCallback;
            _cookies = new CookieManager();

            IsClientConnected = true;
        }
Example #2
0
        public OwinResponse(ResultDelegate responseCallback, string origin)
        {
            _responseCallback = responseCallback;
            _cookies = new CookieManager();
            _origin = origin;

            IsClientConnected = true;
        }
Example #3
0
        public OwinRequest(IDictionary<string, object> environment, string body)
        {
            var env = new Gate.Environment(environment);
            var headers = env.Headers;

            Url = BuildUrl(env);
            Headers = new NameValueCollection();

            foreach (var pair in headers)
            {
                foreach (var value in pair.Value)
                {
                    Headers.Add(pair.Key, value);
                }
            }

            _cookies = new CookieManager();
            QueryString = HttpUtility.ParseDelimited(env.QueryString);
            Form = HttpUtility.ParseDelimited(body);
        }