Пример #1
0
        public HttpApiClient(string host)
        {
            Uri = new Uri(host);

            Header   = new Header();
            Formater = new FormUrlFormater();
            Host     = Uri.Host;
            mPoolKey = $"{Uri.Host}:{Uri.Port}";
        }
Пример #2
0
 public HttpHost(Uri host)
 {
     this.Uri  = host;
     Formater  = new FormUrlFormater();
     Host      = this.Uri.Host;
     Port      = this.Uri.Port;
     mPoolKey  = $"{this.Uri.Host}:{this.Uri.Port}";
     mPool     = HttpClientPoolFactory.GetPool(mPoolKey, this.Uri);
     Available = true;
     InVerify  = false;
 }