Documentation
¶
Index ¶
- Constants
- Variables
- func CloseFile(closer io.Closer)
- func GetHostname(host string) string
- func LookupIp(host string) (ipV4 net.IP, ipV6 net.IP, err error)
- func OpenOrCreateFile(filename string) (*os.File, error)
- func ProxyBasicAuth(req *http.Request) (username, password string, ok bool)
- func RemoveProxyHeaders(req *http.Request)
- func Transfer(readTimeout time.Duration, writeTimeout time.Duration, src io.ReadCloser, ...)
- func UnescapeString(s string) string
Constants ¶
View Source
const BufferSize = 1024 * 32
View Source
const CloseFileTimeout = time.Second * 2
Variables ¶
View Source
var ProxyHeadersRegexp, _ = regexp.Compile("^(?i)proxy-")
Functions ¶
func GetHostname ¶ added in v0.3.26
func RemoveProxyHeaders ¶
func Transfer ¶
func Transfer(readTimeout time.Duration, writeTimeout time.Duration, src io.ReadCloser, dst io.WriteCloser)
func UnescapeString ¶ added in v0.3.17
* unescaped chars: 1. \a, \b, \f, \n, \r, \t, \v, \\ 2. \x00, \u0000, \U00000000 3. \012, \128, ...
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.