示例#1
0
 public AspNetRequest(ushort id, BeginRequestMessageBody body, IAspNetRequestConfig config)
     : base(id, body)
 {
     _config      = config;
     this.Status  = String.Empty;
     this.Headers = new NameValueCollection();
 }
 public CustomAspNetRequest(ushort id, BeginRequestMessageBody body, ServerInternal server)
     : base(id, body)
 {
     //these must be the same values used when calling ApplicationHost.CreateApplicationHost
     this.VirtualPath  = server.VirtualPath;
     this.PhysicalPath = server.PhysicalPath;
 }
示例#3
0
 public SimpleRequest(ushort id, BeginRequestMessageBody body)
     : base(id, body)
 {
 }
示例#4
0
 public OwinRequest(ushort id, BeginRequestMessageBody body, OwinMiddleware pipeline) : base(id, body)
 {
     this.pipeline = pipeline;
     context.Set <Action <Action <object>, object> >("server.OnSendingHeaders", RegisterOnSendingHeadersCallback);
 }
示例#5
0
 protected override Request CreateRequest(ushort requestId, BeginRequestMessageBody body)
 {
     return(new OwinRequest(requestId, body, pipeline));
 }
示例#6
0
 protected override Request CreateRequest(ushort requestId, BeginRequestMessageBody body)
 {
     return(new AspNetRequest(requestId, body, _config));
 }