Documentation ¶
Index ¶
Constants ¶
View Source
const ( HEADER_X_AUTH_TOKEN string = "X-AUTH-TOKEN" HEADER_X_API_VERSION string = "X-API-VERSION" HEADER_X_REQUESTED_WITH string = "X-Requested-With" )
Variables ¶
This section is empty.
Functions ¶
func CorsMiddleware ¶
func CorsMiddleware(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
func GzipContentTypeMiddleware ¶
func GzipContentTypeMiddleware(res http.ResponseWriter, req *http.Request, next http.HandlerFunc)
checks if files in gzricebox are already compressed skips compression for binary files compresses html content if client supports
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.