Beispiel #1
0
 HttpHost(bool secure, HttpDomain domain, int port, bool portIsDefault)
 {
     Secure        = secure;
     Domain        = domain;
     Port          = port;
     PortIsDefault = portIsDefault;
 }
Beispiel #2
0
        public HttpLink ResolveHostWildcard(HttpDomain domain)
        {
            var resolved = Host.ResolveDomainWildcard(domain);

            return(resolved == Host ? this : From(resolved, Resource));
        }
Beispiel #3
0
        public HttpHost ResolveDomainWildcard(HttpDomain domain)
        {
            var resolved = Domain.ResolveWildcard(domain);

            return(resolved == Domain ? this : From(Secure, resolved, Port));
        }
Beispiel #4
0
 public static HttpHost FromHttps(HttpDomain domain) =>
 From(true, domain);
Beispiel #5
0
 public static HttpHost FromHttp(HttpDomain domain) =>
 From(false, domain);
Beispiel #6
0
 public static HttpHost From(bool secure, string domain) =>
 From(secure, HttpDomain.From(domain));
Beispiel #7
0
 public static HttpHost From(bool secure, string domain, int port) =>
 From(secure, HttpDomain.From(domain), port);
Beispiel #8
0
 public static HttpHost From(bool secure, HttpDomain domain) =>
 new HttpHost(secure, domain, secure ? DefaultSecurePort : DefaultPort, portIsDefault: true);
Beispiel #9
0
 public static HttpHost From(bool secure, HttpDomain domain, int port) =>
 new HttpHost(secure, domain, port, secure ? port == DefaultSecurePort : port == DefaultPort);