6 implementations of Method
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostTests.cs (1)
1396public string Method { get; set; }
Microsoft.AspNetCore.Http (1)
Features\HttpRequestFeature.cs (1)
34public string Method { get; set; }
Microsoft.AspNetCore.Owin (1)
OwinFeatureCollection.cs (1)
87string IHttpRequestFeature.Method
Microsoft.AspNetCore.Server.HttpSys (1)
RequestProcessing\RequestContext.FeatureCollection.cs (1)
180string IHttpRequestFeature.Method
Microsoft.AspNetCore.Server.IIS (1)
Core\IISHttpContext.FeatureCollection.cs (1)
119string IHttpRequestFeature.Method
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\HttpProtocol.FeatureCollection.cs (1)
34string IHttpRequestFeature.Method
5 writes to Method
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
100set { HttpRequestFeature.Method = value; }
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
54{ OwinConstants.RequestMethod, new FeatureMap<IHttpRequestFeature>(feature => feature.Method, () => string.Empty, (feature, value) => feature.Method = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Owin.Tests (1)
OwinFeatureCollectionTests.cs (1)
54requestFeature.Method = HttpMethods.Get;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
RequestTests.cs (2)
80requestInfo.Method = "TEST"; 144requestInfo.Method = null;
13 references to Method
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
99get { return HttpRequestFeature.Method; }
Microsoft.AspNetCore.Http.Connections (1)
Internal\HttpConnectionDispatcher.cs (1)
719Method = existingRequestFeature.Method,
Microsoft.AspNetCore.Owin (1)
OwinEnvironment.cs (1)
54{ OwinConstants.RequestMethod, new FeatureMap<IHttpRequestFeature>(feature => feature.Method, () => string.Empty, (feature, value) => feature.Method = Convert.ToString(value, CultureInfo.InvariantCulture)) },
Microsoft.AspNetCore.Owin.Tests (1)
OwinFeatureCollectionTests.cs (1)
35Assert.Equal(requestFeature.Method, HttpMethods.Post);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (3)
RequestTests.cs (3)
31Assert.Equal("GET", requestInfo.Method); 81Assert.Equal("TEST", requestInfo.Method); 145Assert.Null(requestInfo.Method);
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Internal\Http\Http1Connection.cs (1)
334Debug.Assert(((IHttpRequestFeature)this).Method != null, "Method was not set");
Internal\Http\HttpProtocol.cs (1)
150public string MethodText => ((IHttpRequestFeature)this).Method;
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http1\Http1ConnectionTests.cs (1)
417Assert.Equal(expectedMethod, ((IHttpRequestFeature)_http1Connection).Method);
MessageBodyTests.cs (1)
587Assert.Equal(CoreStrings.FormatBadRequest_LengthRequiredHttp10(((IHttpRequestFeature)input.Http1Connection).Method), ex.Message);
Microsoft.AspNetCore.TestHost.Tests (2)
ClientHandlerTests.cs (2)
28Assert.Equal("GET", features.Get<IHttpRequestFeature>().Method); 77Assert.Equal("GET", features.Get<IHttpRequestFeature>().Method);