/// <summary>
 /// This module requires https.
 /// </summary>
 /// <param name="module">The <see cref="INancyModule"/> that requires HTTPS.</param>
 /// <param name="redirect"><see langword="true"/> if the user should be redirected to HTTPS if the incoming request was made using HTTP, otherwise <see langword="false"/> if <see cref="HttpStatusCode.Forbidden"/> should be returned.</param>
 /// <param name="httpsPort">The HTTPS port number to use</param>
 public static void RequiresHttps(this INancyModule module, bool redirect, int httpsPort)
 {
     module.Before.AddItemToEndOfPipeline(SecurityHooks.RequiresHttps(redirect, httpsPort));
 }