System.UriBuilderExtensions.IsSsl C# (CSharp) Méthode

IsSsl() private static méthode

private static IsSsl ( string scheme, NameValueCollection headers ) : bool
scheme string
headers System.Collections.Specialized.NameValueCollection
Résultat bool
		private static bool IsSsl(string scheme, NameValueCollection headers)
		{
			if (scheme == Uri.UriSchemeHttps)
			{
				return true;
			}
			// if this header is set then we nginx proxied
			return !string.IsNullOrEmpty(headers[ProxySslModeHeader]);
		}

Same methods

UriBuilderExtensions::IsSsl ( this url, NameValueCollection headers ) : bool