Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangeProto ¶
func ChangeProto(rt RedirType, root, port string, handler http.HandlerFunc) http.HandlerFunc
ChangeProto modify the url scheme.
func Redirect ¶
func Redirect(rt RedirType, root, port string, handler http.HandlerFunc) http.HandlerFunc
Redirect change the scheme and redirect the request. If the scheme do not change call the next handler.
Types ¶
Click to show internal directories.
Click to hide internal directories.