System.Net.Http.AutoRedirectTests.Keeps_method_on_a_307 C# (CSharp) Method

Keeps_method_on_a_307() private method

private Keeps_method_on_a_307 ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task Keeps_method_on_a_307()
        {
            using (var client = new HttpClient(_handler)
            {
                BaseAddress = new Uri("http://localhost")
            })
            {
                var response = await client.SendAsync(new HttpRequestMessage(HttpMethod.Head, "/redirect-307-absolute"));

                response.StatusCode.ShouldBe(HttpStatusCode.OK);
                response.RequestMessage.RequestUri.AbsoluteUri.ShouldBe("http://localhost/redirect");
                response.RequestMessage.Method.ShouldBe(HttpMethod.Head);
            }
        }