src/packages/EmbedIO/HttpContextExtensions-Requests.cs
/// <summary>
/// Asynchronously retrieves the request body as a string.
/// </summary>
/// <param name="this">The <see cref="IHttpContext"/> on which this method is called.</param>
/// <returns>A <see cref="Task{TResult}">Task</see>, representing the ongoing operation,
/// whose result will be a <see langword="string"/> representation of the request body.</returns>
/// <exception cref="NullReferenceException"><paramref name="this"/> is <see langword="null"/>.</exception>
Asynchronously retrieves the request body as a string.
Asynchronously retrieves the request body as a string .
public static async Task<string> GetRequestBodyAsStringAsync(this IHttpContext @this)
        {
            using var reader = @this.OpenRequestText();
            return await reader.ReadToEndAsync().ConfigureAwait(false);
        }
public static async Task < string > GetRequestBodyAsStringAsync ( this IHttpContext @this ) { using var reader = @this . OpenRequestText ( ) ; return await reader . ReadToEndAsync ( ) . ConfigureAwait ( false ) ; }
Asynchronously retrieves the request body as a string.
Asynchronously retrieves the request body as a string .
A Task representation of the request body.
A Task representation of the request body .
None
IHttpContext
this
this
The  on which this method is called.
The on which this method is called .