Documentation ¶
Overview ¶
httpUtils provides functions and middlewares for working with http requests and responses
Index ¶
- func AddUserToReq(next http.Handler) http.Handler
- func LogRequest(next http.Handler) http.Handler
- func ServeStaticFile(resource string, w http.ResponseWriter, r *http.Request)
- func SetCacheControl(next http.Handler) http.Handler
- func SetHTTPHeaders(next http.Handler) http.Handler
- func SetMaxBytes(next http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeStaticFile ¶
func ServeStaticFile(resource string, w http.ResponseWriter, r *http.Request)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.