httpresponseextensions-class
Class HttpResponseExtensions.
public static class Microsoft.AspNetCore.Http.HttpResponseExtensions
Assembly: Korzh.EasyQuery.AspNetCore.dll
Static Methods
Name | Type | Description |
---|---|---|
WriteJsonAsync(this `HttpResponse` response, `object` data, `CancellationToken` ct = null) | Task | Serializes and object to JSON and writes it to the HTTP response. |
WriteObjectAsync(this `JsonWriter` jsonWriter, `object` data, `CancellationToken` ct = null) | Task | Serializes and object to JSON and writes it to the JsonWriter. |
WriteResultSetAsync(this `JsonWriter` jsonWriter, [IEqResultSet](/korzh-easyquery-services-namespace/ieqresultset-interface) resultSet, `CancellationToken` ct = null) | Task | Serializes result set to JSON and writes it to the JsonWriter. |