class Aws::S3::Plugins::SseCpk::Handler

def require_https(context)

def require_https(context)
  unless URI::HTTPS === context.config.endpoint
    msg = <<-MSG.strip.gsub("\n", ' ')
      Attempting to send customer-provided-keys for S3
      server-side-encryption over HTTP; Please configure a HTTPS
      endpoint. If you are attempting to use a test endpoint,
      you can disable this check via `:require_https_for_sse_cpk`
    MSG
    raise ArgumentError, msg
  end
end