Exemplo n.º 1
0
        internal async Task WriteToStreamAsync(HttpWriter writer)
        {
            await writer.WriteAsync(Name);

            await writer.WriteAsync(": ");

            await writer.WriteLineAsync(Value);
        }
Exemplo n.º 2
0
 internal async Task WriteToStreamAsync(HttpWriter writer, CancellationToken cancellationToken)
 {
     await writer.WriteAsync(Name, cancellationToken);
     await writer.WriteAsync(": ", cancellationToken);
     await writer.WriteLineAsync(Value, cancellationToken);
 }