Help us shape the future of Go! Take the 2026 Go Developer Survey

forcessl

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 2 Imported by: 136

README

mw-forcessl

Standard Test Go Reference

NOTE: v1.0.2 will be the last version of this module and it will be deprecated. Use https://github.com/gobuffalo/middleware instead.

Requirements
  • Go 1.16+ but 1.17 and 1.18 are officially supported
  • Go Modules
Installation
$ go get github.com/gobuffalo/mw-forcessl

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Middleware

func Middleware(opts secure.Options) buffalo.MiddlewareFunc

Middleware uses the github.com/unrolled/secure package to automatically force a redirect to https from http. See https://github.com/unrolled/secure/ for more details on configuring.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL