/// <summary> /// Sets the content of the request to the specified content. /// </summary> /// <param name="content">The HTTP content.</param> /// <param name="encoding">The encoding to use for the content.</param> /// <param name="mediaType">The media type to use for the content.</param> /// <returns>An <see cref="IRequest"/> object that represents the request.</returns> public static IRequest String(this IWith @this, string content, Encoding encoding, string mediaType) => @this.String(new StringContent(content, encoding, mediaType));
/// <summary> /// Sets the content of the request to the specified content. /// </summary> /// <param name="content">The HTTP content.</param> /// <returns>An <see cref="IRequest"/> object that represents the request.</returns> public static IRequest String(this IWith @this, string content) => @this.String(new StringContent(content));