Delegate ResponseSerializerCallback
A callback used to serialize data to a HTTP response.
Namespace: EmbedIO
Syntax
public delegate Task ResponseSerializerCallback(IHttpContext context, object data);
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpContext | context | The HTTP context of the request. |
| Object | data | The data to serialize. |
Returns
| Type | Description |
|---|---|
| Task | A |