Beispiel #1
0
 IHttpClientBuilder IHttpClientBuilder.SetVersion(HttpVersion version)
 {
     return(this.SetVersion(version));
 }
 /// <summary>
 /// 设置请求使用的协议版本号。
 /// </summary>
 /// <param name="httpRequest"></param>
 /// <param name="version"></param>
 /// <returns></returns>
 public static IHttpRequest SetVersion(this IHttpRequest httpRequest, HttpVersion version)
 {
     httpRequest.Version = version;
     return(httpRequest);
 }
Beispiel #3
0
 /// <summary>
 /// 设置 HTTP 协议版本号。
 /// </summary>
 /// <param name="version"></param>
 /// <returns></returns>
 public virtual BasicHttpClientBuilder SetVersion(HttpVersion version)
 {
     Version = version;
     return(this);
 }