- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for redirectHandler (0.23 sec)
-
src/net/http/server_test.go
}{ {"GET", "/", "&http.handler{i:1}"}, {"GET", "//", `&http.redirectHandler{url:"/", code:301}`}, {"GET", "/foo/../bar/./..//baz", `&http.redirectHandler{url:"/baz", code:301}`}, {"GET", "/foo", "&http.handler{i:3}"}, {"GET", "/foo/x", "&http.handler{i:2}"}, {"GET", "/bar/x", "&http.handler{i:4}"}, {"GET", "/bar", `&http.redirectHandler{url:"/bar/", code:301}`}, {"CONNECT", "/", "&http.handler{i:1}"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 13 13:54:22 UTC 2024 - 7.3K bytes - Viewed (0) -
src/net/http/servemux121.go
// redirect for /tree/. if u, ok := mux.redirectToPathSlash(host, path, r.URL); ok { return RedirectHandler(u.String(), StatusMovedPermanently), u.Path } if path != r.URL.Path { _, pattern = mux.handler(host, path) u := &url.URL{Path: path, RawQuery: r.URL.RawQuery} return RedirectHandler(u.String(), StatusMovedPermanently), pattern } return mux.handler(host, r.URL.Path) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:40:38 UTC 2024 - 5.8K bytes - Viewed (0) -
src/net/http/server.go
func htmlEscape(s string) string { return htmlReplacer.Replace(s) } // Redirect to a fixed URL type redirectHandler struct { url string code int } func (rh *redirectHandler) ServeHTTP(w ResponseWriter, r *Request) { Redirect(w, r, rh.url, rh.code) } // RedirectHandler returns a request handler that redirects // each request it receives to the given url using the given // status code.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 123.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go
{"PushOptions.Header", Field, 8}, {"PushOptions.Method", Field, 8}, {"Pusher", Type, 8}, {"ReadRequest", Func, 0}, {"ReadResponse", Func, 0}, {"Redirect", Func, 0}, {"RedirectHandler", Func, 0}, {"Request", Type, 0}, {"Request.Body", Field, 0}, {"Request.Cancel", Field, 5}, {"Request.Close", Field, 0}, {"Request.ContentLength", Field, 0}, {"Request.Form", Field, 0},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 534.2K bytes - Viewed (0)