RESTCLIENT.NET
Menu
EN
↗ GitHub

RESTCLIENT.NET / API REFERENCE

RestClient.Net.Serialize<T>

All API types · RestClient.Net · View source

public delegate Task<HttpContent> Serialize<T>(T body, CancellationToken cancellationToken);

Represents an asynchronous function that serializes a typed object into HTTP content.

Parameter Type Default Description
body T Required The object to serialize.
cancellationToken CancellationToken Required A token to cancel the serialization operation.

Type parameter T: The type of the object to serialize.

Returns: A task that represents the asynchronous serialization operation, containing the serialized HTTP content.