MCPcopy
hub / github.com/tailscale/tailscale / Redirect

Method Redirect

ipn/ipn_view.go:926–926  ·  view source on GitHub ↗

Redirect, if not empty, is the target URL to redirect requests to. By default, we redirect with HTTP 302 (Found) status. If Redirect starts with ' :', then we use that status instead. The target URL supports the following expansion variables: - ${HOST}: replaced with the request's Host hea

()

Source from the content-addressed store, hash-verified

924// - ${HOST}: replaced with the request's Host header value
925// - ${REQUEST_URI}: replaced with the request's full URI (path and query string)
926func (v HTTPHandlerView) Redirect() string { return v.ж.Redirect }
927
928// A compilation failure here means this code must be regenerated, with the command at the top of this file.
929var _HTTPHandlerViewNeedsRegeneration = HTTPHandler(struct {

Callers 13

requireTailscaleIPMethod · 0.80
enforcePrefixFunction · 0.80
ServeHTTPMethod · 0.80
mainFunction · 0.80
authorizeMethod · 0.80
handleEditClientMethod · 0.80
runCertFunction · 0.80
ServeHTTPMethod · 0.80
promoteHTTPSMethod · 0.80
ServeRedirectHTTPMethod · 0.80
serveWebHandlerMethod · 0.80
serveFileOrDirectoryMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected