src/packages/EmbedIO.Testing/HttpResponseMessageExtensions.cs
/// <summary>
/// Asynchronously gets a HTTP response body as a string.
/// </summary>
/// <param name="this">The <see cref="Task{TResult}"/> that will return the response.</param>
/// <returns>A <see cref="Task{TResult}"/> whose result will be the response body as a string.</returns>
Asynchronously gets a HTTP response body as a string.
Asynchronously gets a HTTP response body as a string .
public static async Task<string?> ReceiveStringAsync(this Task<HttpResponseMessage> @this)
        {
            using var response = await @this.ConfigureAwait(false);
            return response == null ? null : await response.Content.ReadAsStringAsync().ConfigureAwait(false);
        }
public static async Task < string ? > ReceiveStringAsync ( this Task < HttpResponseMessage > @this ) { using var response = await @this . ConfigureAwait ( false ) ; return response == null ? null : await response . Content . ReadAsStringAsync ( ) . ConfigureAwait ( false ) ; }
Asynchronously gets a HTTP response body as a string.
Asynchronously gets a HTTP response body as a string .
A  whose result will be the response body as a string.
A whose result will be the response body as a string .
Task<HttpResponseMessage>
this
this
The  that will return the response.
The that will return the response .