Lines Matching refs:http
9 * http://www.apache.org/licenses/LICENSE-2.0
27 "net/http"
28 "net/http/httputil"
38 httpProxyFromEnvironment = http.ProxyFromEnvironment
42 req := &http.Request{
58 // To read a response from a net.Conn, http.ReadResponse() takes a bufio.Reader.
79 req := (&http.Request{
80 Method: http.MethodConnect,
86 return nil, fmt.Errorf("failed to write the HTTP request: %v", err)
90 resp, err := http.ReadResponse(r, req)
92 return nil, fmt.Errorf("reading server HTTP response: %v", err)
95 if resp.StatusCode != http.StatusOK {
108 // provided dialer, does HTTP CONNECT handshake and returns the connection.