package appproxy import ( "bytes" "io" "net/url" "regexp" "strings" "golang.org/x/net/html" ) /* rewrite.go Keeps an app that assumes it owns "/" working under /app//. - rewriteURL root-absolute and same-host absolute URLs -> prefixed - rewriteHTML URL attributes, ,