MCPcopy Index your code
hub / github.com/writefreely/writefreely / sendRedirect

Function sendRedirect

handle.go:1002–1006  ·  view source on GitHub ↗
(w http.ResponseWriter, code int, location string)

Source from the content-addressed store, hash-verified

1000}
1001
1002func sendRedirect(w http.ResponseWriter, code int, location string) int {
1003 w.Header().Set("Location", location)
1004 w.WriteHeader(code)
1005 return code
1006}
1007
1008func cacheControl(next http.Handler) http.Handler {
1009 return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 6

UserMethod · 0.85
RedirectMethod · 0.85
handleHTTPErrorMethod · 0.85
handleErrorMethod · 0.85
handleTextErrorMethod · 0.85
handleOAuthErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected