/// <summary> /// Test explicitly required string. Please put a header 'headerParameter' /// => null and the client library should throw before the request is sent. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='headerParameter'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Error> PostRequiredStringHeaderAsync(this IExplicitModel operations, string headerParameter, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.PostRequiredStringHeaderWithHttpMessagesAsync(headerParameter, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }