Documentation ¶
Index ¶
- Variables
- func BreakBaseURL(rawurl string) (scheme, ipaddr, port string, err error)
- func ContainsDotDot(v string) bool
- func EqualDomain(d1, d2 string) bool
- func ExtractRootDomain(domain string) (string, error)
- func ForceIPHTTPClient(ip, port string) *http.Client
- func ForceIPWebsocketDialer(ip, port string) *websocket.Dialer
- func FormatHelloServerName(servername string) (string, error)
- func IsSlashRune(r rune) bool
- func Redirect2HTTPS(w http.ResponseWriter, req *http.Request)
- func SplitHostPort(hostport string) (string, string)
- func SplitSlash(url string) []string
- func StripPort(hostport string) string
- func StripSchemePort(uri string) string
- func UploadEmbedFolderMultipart(client *http.Client, url, method string, relfilepaths []string, ...) (*http.Response, error)
- func UploadFileMultipart(client *http.Client, url string, path string) (*http.Response, error)
- func UploadFolderMultipart(client *http.Client, url, method string, folder string, fields ...string) (*http.Response, error)
- func VerifyTXT(domain, token string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func BreakBaseURL ¶
func ContainsDotDot ¶
func EqualDomain ¶
func ExtractRootDomain ¶
ExtractRootDomain extracts the EffectiveTLDPlusOne, see https://godoc.org/golang.org/x/net/publicsuffix#EffectiveTLDPlusOne for more explanations
func ForceIPHTTPClient ¶
func ForceIPWebsocketDialer ¶
func FormatHelloServerName ¶
func IsSlashRune ¶
func Redirect2HTTPS ¶
func Redirect2HTTPS(w http.ResponseWriter, req *http.Request)
func SplitHostPort ¶
func SplitSlash ¶
func StripSchemePort ¶
StripPort also removes IPV6 addresses square brackets
func UploadFileMultipart ¶
func UploadFolderMultipart ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.