1 write to Response
Microsoft.AspNetCore.Authentication.Test (1)
36 references to Response
Microsoft.AspNetCore.Authentication.Test (36)
CookieTests.cs (36)
50Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
51var responded = transaction.Response.Headers.GetValues("Location");
62Assert.Equal(HttpStatusCode.Forbidden, transaction.Response.StatusCode);
63var responded = transaction.Response.Headers.GetValues("Location");
74Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
75var responded = transaction.Response.Headers.GetValues("Location");
86Assert.Equal(HttpStatusCode.Unauthorized, transaction.Response.StatusCode);
87var responded = transaction.Response.Headers.GetValues("Location");
100Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
101var location = transaction.Response.Headers.Location;
146Assert.True(transaction.Response.Headers.CacheControl.NoCache);
147Assert.True(transaction.Response.Headers.CacheControl.NoStore);
148Assert.Equal("no-cache", transaction.Response.Headers.Pragma.ToString());
279Assert.True(transaction.Response.Headers.CacheControl.NoCache);
280Assert.True(transaction.Response.Headers.CacheControl.NoStore);
281Assert.Equal("no-cache", transaction.Response.Headers.Pragma.ToString());
1178Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1179var location = transaction.Response.Headers.Location;
1192Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1193var location = transaction.Response.Headers.Location;
1210Assert.Equal(HttpStatusCode.Redirect, transaction2.Response.StatusCode);
1226Assert.Equal(HttpStatusCode.Redirect, transaction2.Response.StatusCode);
1515Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1516Assert.Equal(redirectUrl, transaction.Response.Headers.Location.ToString());
1538Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1560Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1561Assert.Equal("/ret_path_2", transaction.Response.Headers.Location.ToString());
1583Assert.Equal(HttpStatusCode.OK, transaction.Response.StatusCode);
1606Assert.Equal(HttpStatusCode.Redirect, transaction.Response.StatusCode);
1607Assert.Equal("/redirect_test", transaction.Response.Headers.Location.ToString());
1915if (transaction.Response.Headers.Contains("Set-Cookie"))
1917transaction.SetCookie = transaction.Response.Headers.GetValues("Set-Cookie").SingleOrDefault();
1923transaction.ResponseText = await transaction.Response.Content.ReadAsStringAsync();
1925if (transaction.Response.Content != null &&
1926transaction.Response.Content.Headers.ContentType != null &&
1927transaction.Response.Content.Headers.ContentType.MediaType == "text/xml")