remove todo

This commit is contained in:
mqliang
2015-11-28 10:40:28 +08:00
parent bd7984266a
commit 149af2f7a7
5 changed files with 85 additions and 100 deletions

View File

@@ -23,6 +23,7 @@ import (
"net"
"net/http"
"net/url"
"strconv"
"strings"
)
@@ -102,3 +103,11 @@ func TLSClientConfig(transport http.RoundTripper) (*tls.Config, error) {
return nil, fmt.Errorf("unknown transport type: %v", transport)
}
}
func FormatURL(scheme string, host string, port int, path string) *url.URL {
return &url.URL{
Scheme: scheme,
Host: net.JoinHostPort(host, strconv.Itoa(port)),
Path: path,
}
}