Exemplo n.º 1
0
 /// <summary>
 /// Sets the If-Range header of the request to the specified tag and is weak.
 /// </summary>
 /// <param name="tag">The If-Range header tag.</param>
 /// <param name="tag">The If-Range header is weak.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest IfRange(this IWith @this, string tag, bool isWeak)
 => @this.IfRange(new RangeConditionHeaderValue(new EntityTagHeaderValue(tag, isWeak)));
Exemplo n.º 2
0
 /// <summary>
 /// Sets the If-Range header of the request to the specified date.
 /// </summary>
 /// <param name="date">The If-Range header date.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest IfRange(this IWith @this, DateTimeOffset date)
 => @this.IfRange(new RangeConditionHeaderValue(date));