HttpResponse
HttpResponse()
Body
BodyWriter
ContentLength
ContentType
Cookies
HasStarted
Headers
HttpContext
StatusCode
CompleteAsync()
OnCompleted(Func<Task>)
OnCompleted(Func<Object, Task>, Object)
OnStarting(Func<Task>)
OnStarting(Func<Object, Task>, Object)
Redirect(String)
Redirect(String, Boolean)
RegisterForDispose(IDisposable)
RegisterForDisposeAsync(IAsyncDisposable)
StartAsync(CancellationToken)
AppendTrailer(HttpResponse, String, StringValues)
AsSystemWeb(HttpResponse)
Clear(HttpResponse)
DeclareTrailer(HttpResponse, String)
GetTypedHeaders(HttpResponse)
Redirect(HttpResponse, String, Boolean, Boolean)
SendFileAsync(HttpResponse, IFileInfo, CancellationToken)
SendFileAsync(HttpResponse, String, CancellationToken)
SendFileAsync(HttpResponse, IFileInfo, Int64, Int64?, CancellationToken)
SendFileAsync(HttpResponse, String, Int64, Int64?, CancellationToken)
SupportsTrailers(HttpResponse)
WriteAsJsonAsync(HttpResponse, Object, Type, CancellationToken)
WriteAsJsonAsync(HttpResponse, Object, JsonTypeInfo, String, CancellationToken)
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, CancellationToken)
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerContext, String, CancellationToken)
WriteAsJsonAsync(HttpResponse, Object, Type, JsonSerializerOptions, String, CancellationToken)
WriteAsJsonAsync<TValue>(HttpResponse, TValue, CancellationToken)
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, CancellationToken)
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonSerializerOptions, String, CancellationToken)
WriteAsJsonAsync<TValue>(HttpResponse, TValue, JsonTypeInfo<TValue>, String, CancellationToken)
WriteAsync(HttpResponse, String, CancellationToken)
WriteAsync(HttpResponse, String, Encoding, CancellationToken)
net9.0
namespace Microsoft.AspNetCore.Http
{
public static class HttpResponseJsonExtensions
{
[RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and need runtime code generation. Use the overload that takes a JsonTypeInfo or JsonSerializerContext for native AOT applications.")]
[RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")]
public static Task! WriteAsJsonAsync<TValue>(this HttpResponse! response, TValue value, CancellationToken cancellationToken = default);
}
}
nuget.org | 0.0 %
Reference this API |
---|---|
.NET | 5.06.07.08.09.0 |
Information specific to net9.0 | |
Assembly | Microsoft.AspNetCore.Http.Extensions , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60 |
Referencing | Requires any:
|
Platform Restrictions | This API is supported on all platforms. |
- Built-in API
- Package-provided API