HttpResponseExtensions class

Class HttpResponseExtensions.

public static class Microsoft.AspNetCore.Http.HttpResponseExtensions

Static Methods

Type Name Description
Task WriteJsonAsync(this HttpResponse response, Object data) Serializes and object to JSON and writes it to the HTTP response.
Task WriteObjectAsync(this JsonWriter jsonWriter, Object data) Serializes and object to JSON and writes it to the JsonWriter.