/// <summary> /// Sets the content of the request to the specified content. /// </summary> /// <param name="content">The HTTP content.</param> /// <param name="offset">The offset, in bytes, in the <paramref name="content"/> parameter.</param> /// <param name="count">The number of bytes in the <paramref name="content"/> starting from the <paramref name="offset"/> parameter.</param> /// <returns>An <see cref="IRequest"/> object that represents the request.</returns> public static IRequest ByteArray(this IWith @this, byte[] content, int offset, int count) => @this.ByteArray(new ByteArrayContent(content, offset, count));
/// <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 ByteArray(this IWith @this, byte[] content) => @this.ByteArray(new ByteArrayContent(content));