/// <summary>
 /// Sets the Accept-Language header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Accept-Language header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest AcceptLanguage(this IWith @this, StringWithQualityHeaderValue value)
 => @this.AddHeaderValue(headers => headers.AcceptLanguage, value);
 /// <summary>
 /// Sets the Warning header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Warning header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Warning(this IWith @this, WarningHeaderValue value)
 => @this.AddHeaderValue(headers => headers.Warning, value);
 /// <summary>
 /// Sets the Accept-Encoding header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Accept-Encoding header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest AcceptEncoding(this IWith @this, StringWithQualityHeaderValue value)
 => @this.AddHeaderValue(headers => headers.AcceptEncoding, value);
 /// <summary>
 /// Sets the User-Agent header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Upgrade header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest UserAgent(this IWith @this, ProductInfoHeaderValue value)
 => @this.AddHeaderValue(headers => headers.UserAgent, value);
 /// <summary>
 /// Sets the Via header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Via header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Via(this IWith @this, ViaHeaderValue value)
 => @this.AddHeaderValue(headers => headers.Via, value);
 /// <summary>
 /// Sets the Transfer-Encoding header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Transfer-Encoding header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest TransferEncoding(this IWith @this, TransferCodingHeaderValue value)
 => @this.AddHeaderValue(headers => headers.TransferEncoding, value);
 /// <summary>
 /// Sets the Upgrade header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Upgrade header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Upgrade(this IWith @this, ProductHeaderValue value)
 => @this.AddHeaderValue(headers => headers.Upgrade, value);
 /// <summary>
 /// Sets the TE header of the request to the specified value.
 /// </summary>
 /// <param name="value">The TE header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest TE(this IWith @this, TransferCodingWithQualityHeaderValue value)
 => @this.AddHeaderValue(headers => headers.TE, value);
 /// <summary>
 /// Sets the Trailer header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Trailer header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Trailer(this IWith @this, string value)
 => @this.AddHeaderValue(headers => headers.Trailer, value);
Esempio n. 10
0
 /// <summary>
 /// Sets the Pragma header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Pragma header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Pragma(this IWith @this, NameValueHeaderValue value)
 => @this.AddHeaderValue(headers => headers.Pragma, value);
Esempio n. 11
0
 /// <summary>
 /// Sets the If-None-Match header of the request to the specified value.
 /// </summary>
 /// <param name="value">The If-None-Match header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest IfNoneMatch(this IWith @this, EntityTagHeaderValue value)
 => @this.AddHeaderValue(headers => headers.IfNoneMatch, value);
Esempio n. 12
0
 /// <summary>
 /// Sets the Accept header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Accept header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Accept(this IWith @this, MediaTypeWithQualityHeaderValue value)
 => @this.AddHeaderValue(headers => headers.Accept, value);
Esempio n. 13
0
 /// <summary>
 /// Sets the Expect header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Expect header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Expect(this IWith @this, NameValueWithParametersHeaderValue value)
 => @this.AddHeaderValue(headers => headers.Expect, value);
Esempio n. 14
0
 /// <summary>
 /// Sets the Cache-Control header of the request to the specified value.
 /// </summary>
 /// <param name="value">The Cache-Control header value.</param>
 /// <returns>An <see cref="IRequest"/> object that represents the request.</returns>
 public static IRequest Connection(this IWith @this, string value)
 => @this.AddHeaderValue(headers => headers.Connection, value);