Documentation ¶
Index ¶
- Constants
- func HTML(w http.ResponseWriter, r *http.Request, list *playlist.PlayList)
- func ListContentType(next http.Handler) http.Handler
- func M3U(w http.ResponseWriter, r *http.Request, list *playlist.PlayList)
- func Responder(w http.ResponseWriter, r *http.Request, v interface{})
- func SetListResponder(next http.Handler) http.Handler
- type ContentType
Constants ¶
View Source
const ( ContentTypeUnknown = iota ContentTypeHTML ContentTypeJSON ContentTypeM3U )
ContentTypes handled by this package.
View Source
const ParamContentType = "ContentType"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ContentType ¶
type ContentType int
ContentType is an enumeration of common HTTP content types.
func ContentTypeFromString ¶ added in v1.0.1
func ContentTypeFromString(s string) ContentType
func GetAcceptedContentType ¶
func GetAcceptedContentType(r *http.Request) ContentType
Click to show internal directories.
Click to hide internal directories.