Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultHLSRewriteConfig = HLSRewriteConfig{ Skipper: func(c echo.Context) bool { req := c.Request() return !strings.HasSuffix(req.URL.Path, ".m3u8") }, PathPrefix: "", }
Functions ¶
func NewHLSRewrite ¶
func NewHLSRewrite() echo.MiddlewareFunc
NewHTTP returns a new HTTP session middleware with default config
func NewHLSRewriteWithConfig ¶
func NewHLSRewriteWithConfig(config HLSRewriteConfig) echo.MiddlewareFunc
Types ¶
type HLSRewriteConfig ¶
type HLSRewriteConfig struct { // Skipper defines a function to skip middleware. Skipper middleware.Skipper PathPrefix string }
Click to show internal directories.
Click to hide internal directories.