1 instantiation of Utf8ContentHttpResult
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
147=> new Utf8ContentHttpResult(utf8Content, contentType, statusCode);
11 references to Utf8ContentHttpResult
Microsoft.AspNetCore.Http.Results (4)
TypedResults.cs (2)
145/// <returns>The created <see cref="Utf8ContentHttpResult"/> object for the response.</returns> 146public static Utf8ContentHttpResult Text(ReadOnlySpan<byte> utf8Content, string? contentType = null, int? statusCode = null)
Utf8ContentHttpResult.cs (2)
10/// An <see cref="Utf8ContentHttpResult"/> that when executed 16/// Initializes a new instance of the <see cref="Utf8ContentHttpResult"/> class with the values
Microsoft.AspNetCore.Http.Results.Tests (7)
ResultsTests.cs (4)
1614var result = Results.Text(content, contentType) as Utf8ContentHttpResult; 1631var result = Results.Text(content, contentType, statusCode) as Utf8ContentHttpResult;
Utf8ContentResultTests.cs (3)
22var result = new Utf8ContentHttpResult(data, contentType: "application/json charst=utf-8", statusCode: 401); 38var result = new Utf8ContentHttpResult("Hello"u8, contentType: null, statusCode: null); 56var result = new Utf8ContentHttpResult(stackalloc byte[5] { 72, 101, 108, 108, 111 }, contentType: null, statusCode: null);