public static IServerHost SecureUpgrade(this IServerHost host, SecureUpgrade mode) { if (mode != Api.Infrastructure.SecureUpgrade.None) { host.Add(new SecureUpgradeConcernBuilder().Mode(mode)); } return(host); }
public static IServerHost Compression(this IServerHost host, CompressionConcernBuilder compression) { host.Add(compression); return(host); }
public static IServerHost StrictTransport(this IServerHost host, StrictTransportPolicy policy) { host.Add(new StrictTransportConcernBuilder().Policy(policy)); return(host); }