Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for remoteaddr (0.16 sec)

  1. src/net/http/request.go

    	//
    	// Few HTTP clients, servers, or proxies support HTTP trailers.
    	Trailer Header
    
    	// RemoteAddr allows HTTP servers and other software to record
    	// the network address that sent the request, usually for
    	// logging. This field is not filled in by ReadRequest and
    	// has no defined format. The HTTP server in this package
    	// sets RemoteAddr to an "IP:port" address before invoking a
    	// handler.
    	// This field is ignored by the HTTP client.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  2. src/crypto/tls/conn.go

    // export the struct field too.
    
    // LocalAddr returns the local network address.
    func (c *Conn) LocalAddr() net.Addr {
    	return c.conn.LocalAddr()
    }
    
    // RemoteAddr returns the remote network address.
    func (c *Conn) RemoteAddr() net.Addr {
    	return c.conn.RemoteAddr()
    }
    
    // SetDeadline sets the read and write deadlines associated with the connection.
    // A zero value for t means [Conn.Read] and [Conn.Write] will not time out.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  3. src/crypto/tls/tls_test.go

    			t.Logf("Listener accepted a connection from %s", lconn.RemoteAddr())
    			lconn.Close()
    		}
    		// Close any spurious extra connections from the listener. (This is
    		// possible if there are, for example, stray Dial calls from other tests.)
    		for extraConn := range acceptc {
    			t.Logf("spurious extra connection from %s", extraConn.RemoteAddr())
    			extraConn.Close()
    		}
    		if ok {
    			break
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  4. common-protos/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
      // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
      // +optional
      repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
    }
    
    // APIGroupList is a list of APIGroup, to allow clients to discover the API at
    // /apis.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto

      // For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
      // Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
      // +optional
      // +listType=atomic
      repeated ServerAddressByClientCIDR serverAddressByClientCIDRs = 4;
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 53.7K bytes
    - Viewed (0)
  6. src/net/http/httputil/reverseproxy_test.go

    // before any mutations.
    func TestClonesRequestHeaders(t *testing.T) {
    	log.SetOutput(io.Discard)
    	defer log.SetOutput(os.Stderr)
    	req, _ := http.NewRequest("GET", "http://foo.tld/", nil)
    	req.RemoteAddr = "1.2.3.4:56789"
    	rp := &ReverseProxy{
    		Director: func(req *http.Request) {
    			req.Header.Set("From-Director", "1")
    		},
    		Transport: roundTripperFunc(func(req *http.Request) (*http.Response, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types_swagger_doc_generated.go

    }
    
    func (APIGroup) SwaggerDoc() map[string]string {
    	return map_APIGroup
    }
    
    var map_APIGroupList = map[string]string{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 18:37:59 UTC 2023
    - 49.2K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/types.go

    	// For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP.
    	// Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.
    	// +listType=atomic
    	ServerAddressByClientCIDRs []ServerAddressByClientCIDR `json:"serverAddressByClientCIDRs" protobuf:"bytes,2,rep,name=serverAddressByClientCIDRs"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 10:52:25 UTC 2024
    - 79.2K bytes
    - Viewed (1)
  9. src/net/http/client_test.go

    func testClientRedirectEatsBody(t *testing.T, mode testMode) {
    	saw := make(chan string, 2)
    	cst := newClientServerTest(t, mode, HandlerFunc(func(w ResponseWriter, r *Request) {
    		saw <- r.RemoteAddr
    		if r.URL.Path == "/" {
    			Redirect(w, r, "/foo", StatusFound) // which includes a body
    		}
    	}))
    
    	res, err := cst.c.Get(cst.ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  10. src/net/http/transport.go

    	switch {
    	case cm.proxyURL == nil:
    		// Do nothing. Not using a proxy.
    	case cm.proxyURL.Scheme == "socks5" || cm.proxyURL.Scheme == "socks5h":
    		conn := pconn.conn
    		d := socksNewDialer("tcp", conn.RemoteAddr().String())
    		if u := cm.proxyURL.User; u != nil {
    			auth := &socksUsernamePassword{
    				Username: u.Username(),
    			}
    			auth.Password, _ = u.Password()
    			d.AuthMethods = []socksAuthMethod{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top