Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 72 for newClient (0.18 sec)

  1. src/net/rpc/server.go

    typically it will create a network listener and call [Accept] or, for an HTTP
    listener, [HandleHTTP] and [http.Serve].
    
    A client wishing to use the service establishes a connection and then invokes
    [NewClient] on the connection.  The convenience function [Dial] ([DialHTTP]) performs
    both steps for a raw network connection (an HTTP connection).  The resulting
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/JSSETest.kt

      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      var client = clientTestRule.newClient()
    
      private lateinit var server: MockWebServer
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
    
        // Default after JDK 14, but we are avoiding tests that assume special setup.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/SessionReuseTest.kt

      @JvmField @RegisterExtension
      val clientTestRule = OkHttpClientTestRule()
    
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
    
      var client = clientTestRule.newClient()
    
      private lateinit var server: MockWebServer
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
    
        // Default after JDK 14, but we are avoiding tests that assume special setup.
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. pkg/kube/multicluster/secretcontroller.go

    		if err != nil {
    			log.Errorf("Could not get istiod incluster configuration: %v", err)
    			return nil
    		}
    		log.Info("Successfully retrieved incluster config.")
    
    		localKubeClient, err := kube.NewClient(kube.NewClientConfigForRestConfig(config), clusterID)
    		if err != nil {
    			log.Errorf("Could not create a client to access local cluster API server: %v", err)
    			return nil
    		}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 06 02:13:10 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. pkg/test/framework/components/prometheus/kube.go

    		scopes.Framework.Debugf("initialized Prometheus port forwarder: %v", forwarder.Address())
    
    		address := fmt.Sprintf("http://%s", forwarder.Address())
    		var client prometheusApi.Client
    		client, err = prometheusApi.NewClient(prometheusApi.Config{Address: address})
    		if err != nil {
    			return nil, err
    		}
    
    		c.api[cls.Name()] = prometheusApiV1.NewAPI(client)
    	}
    	return c, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  6. internal/rest/client.go

    	}
    	return resp.Body, nil
    }
    
    // Close closes all idle connections of the underlying http client
    func (c *Client) Close() {
    	atomic.StoreInt32(&c.connected, closed)
    }
    
    // NewClient - returns new REST client.
    func NewClient(uu *url.URL, tr http.RoundTripper, newAuthToken func(aud string) string) *Client {
    	connected := int32(online)
    	urlStr := uu.String()
    	u, err := url.Parse(urlStr)
    	if err != nil {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_v3_test.go

    				Group:   "",
    				Version: "v1",
    				Kind:    "List",
    			},
    			queryParam:       QueryParamFieldValidation,
    			expectedSupports: false,
    		},
    	}
    
    	root := openapi3.NewRoot(cached.NewClient(openapitest.NewEmbeddedFileClient()))
    	for tn, tc := range tests {
    		t.Run(tn, func(t *testing.T) {
    			verifier := &queryParamVerifierV3{
    				finder: NewCRDFinder(func() ([]schema.GroupKind, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 04:44:45 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. pilot/pkg/model/network.go

    }
    
    type nameCacheEntry struct {
    	value  []string
    	expiry time.Time
    	timer  *time.Timer
    }
    
    func newNetworkGatewayNameCache() (*networkGatewayNameCache, error) {
    	c, err := newClient()
    	if err != nil {
    		return nil, err
    	}
    	return newNetworkGatewayNameCacheWithClient(c), nil
    }
    
    // newNetworkGatewayNameCacheWithClient exported for test
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  9. cmd/warm-backend-gcs.go

    	}
    
    	credsJSON, err := conf.GetCredentialJSON()
    	if err != nil {
    		return nil, err
    	}
    
    	clnt := &http.Client{
    		Transport: globalRemoteTargetTransport,
    	}
    
    	client, err := storage.NewClient(context.Background(),
    		option.WithCredentialsJSON(credsJSON),
    		option.WithScopes(storage.ScopeReadWrite),
    		option.WithHTTPClient(clnt),
    		option.WithUserAgent(fmt.Sprintf("gcs-tier-%s", tier)+SlashSeparator+ReleaseTag),
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Apr 21 11:43:18 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. internal/event/target/mqtt.go

    		SetMaxReconnectInterval(args.MaxReconnectInterval).
    		SetKeepAlive(args.KeepAlive).
    		SetTLSConfig(&tls.Config{RootCAs: args.RootCAs}).
    		AddBroker(args.Broker.String())
    
    	target.client = mqtt.NewClient(options)
    
    	token := target.client.Connect()
    	ok := token.WaitTimeout(reconnectInterval)
    	if !ok {
    		return store.ErrNotConnected
    	}
    	if token.Error() != nil {
    		return token.Error()
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top