public OwinRequest(IDictionary<string, object> environment) {
     if (environment == null) {
         throw new ArgumentNullException("environment");
     }
     _environment = environment;
     var headers = _environment.GetValueOrCreate(OwinKeys.Request.Headers, OwinFactory.CreateHeaders);
     _headers = new OwinRequestHeaders(headers);
 }
Esempio n. 2
0
        public OwinRequest(IDictionary <string, object> environment)
        {
            if (environment == null)
            {
                throw new ArgumentNullException("environment");
            }
            _environment = environment;
            var headers = _environment.GetValueOrCreate(OwinKeys.Request.Headers, OwinFactory.CreateHeaders);

            _headers = new OwinRequestHeaders(headers);
        }