Skip to main content

httpresponseextensions-class

Class HttpResponseExtensions.

public static class Microsoft.AspNetCore.Http.HttpResponseExtensions

Assembly: Korzh.EasyQuery.AspNetCore.dll

Static Methods

NameTypeDescription
WriteJsonAsync(this `HttpResponse` response, `object` data, `CancellationToken` ct = null)TaskSerializes and object to JSON and writes it to the HTTP response.
WriteObjectAsync(this `JsonWriter` jsonWriter, `object` data, `CancellationToken` ct = null)TaskSerializes 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)TaskSerializes result set to JSON and writes it to the JsonWriter.