6 implementations of PathBase
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1400public string PathBase { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpRequestFeature.cs (1)
37public string PathBase { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
93string IHttpRequestFeature.PathBase
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
192string IHttpRequestFeature.PathBase
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
125string IHttpRequestFeature.PathBase
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
52string IHttpRequestFeature.PathBase
5 writes to PathBase
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
70set { HttpRequestFeature.PathBase = value.Value ?? string.Empty; }
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
55{ OwinConstants.RequestPathBase, new FeatureMap<IHttpRequestFeature>(feature => feature.PathBase, () => string.Empty, (feature, value) => feature.PathBase = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Owin.Tests (1)
OwinFeatureCollectionTests.cs (1)
56requestFeature.PathBase = "/pathBase2";
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
89requestInfo.PathBase = "/customized/Base"; 152requestInfo.PathBase = null;
13 references to PathBase
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
69get { return new PathString(HttpRequestFeature.PathBase); }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
722PathBase = existingRequestFeature.PathBase,
Microsoft.AspNetCore.Http.Features (1)
IHttpRequestFeature.cs (1)
43/// The value may be <see cref="string.Empty"/> if <see cref="PathBase"/> contains the full path,
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
55{ OwinConstants.RequestPathBase, new FeatureMap<IHttpRequestFeature>(feature => feature.PathBase, () => string.Empty, (feature, value) => feature.PathBase = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Owin.Tests (1)
OwinFeatureCollectionTests.cs (1)
37Assert.Equal("/pathBase", requestFeature.PathBase);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (7)
RequestTests.cs (7)
35Assert.Equal("/basepath", requestInfo.PathBase); 90Assert.Equal("/customized/Base", requestInfo.PathBase); 153Assert.Null(requestInfo.PathBase); 219Assert.Equal(expectedPathBase, requestInfo.PathBase); 265Assert.Equal("", requestInfo.PathBase); 317Assert.Equal(expectedPathBase, requestInfo.PathBase); 434Assert.Equal(expectedPathBase, requestInfo.PathBase);
Microsoft.AspNetCore.TestHost.Tests (1)
ClientHandlerTests.cs (1)
79Assert.Equal("/A/Path", features.Get<IHttpRequestFeature>().PathBase);