Documentation ¶
Index ¶
Constants ¶
View Source
const ( ContentType_LCP_JSON = "application/vnd.readium.lcp.license.v1.0+json" ContentType_LSD_JSON = "application/vnd.readium.license.status.v1.0+json" ContentType_TEXT_HTML = "text/html" ContentType_JSON = "application/json" ContentType_FORM_URL_ENCODED = "application/x-www-form-urlencoded" )
Variables ¶
This section is empty.
Functions ¶
func CORSHeaders ¶
func CORSHeaders(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
func CheckAuth ¶
func CheckAuth(authenticator *auth.BasicAuth, w http.ResponseWriter, r *http.Request) bool
func ExtraLogger ¶
func ExtraLogger(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc)
Types ¶
type ServerRouter ¶
func CreateServerRouter ¶
func CreateServerRouter(tplPath string) ServerRouter
Click to show internal directories.
Click to hide internal directories.