Delegate ResponseDecodeFunc<T>
Represents a delegate that decodes the return value from a Slice-encoded response.
public delegate ValueTask<T> ResponseDecodeFunc<T>(IncomingResponse response, OutgoingRequest request, IProxy sender, CancellationToken cancellationToken)
Parameters
responseIncomingResponseThe incoming response.
requestOutgoingRequestThe outgoing request.
senderIProxyThe proxy that sent the request.
cancellationTokenCancellationTokenA cancellation token that receives the cancellation requests.
Returns
- ValueTask<T>
A value task that contains the return value or a SliceException when the status code of the response is ApplicationError.
Type Parameters
TThe type of the return value to read.