Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 116 for httpClient (0.12 sec)

  1. samples/jwt-server/src/main_test.go

    	// Start the test server on random port.
    	go server.runHTTP("localhost:0")
    	// Prepare the HTTP request.
    	httpClient := &http.Client{}
    	httpReq, err := http.NewRequest(http.MethodGet, fmt.Sprintf("http://localhost:%d/jwtkeys", <-server.httpPort), nil)
    	if err != nil {
    		t.Fatalf(err.Error())
    	}
    	resp, err := httpClient.Do(httpReq)
    	if err != nil {
    		t.Fatalf(err.Error())
    	}
    	defer resp.Body.Close()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 23 16:58:02 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/apiextensions_client.go

    // NewForConfig is equivalent to NewForConfigAndClient(c, httpClient),
    // where httpClient was generated with rest.HTTPClientFor(c).
    func NewForConfig(c *rest.Config) (*ApiextensionsV1beta1Client, error) {
    	config := *c
    	if err := setConfigDefaults(&config); err != nil {
    		return nil, err
    	}
    	httpClient, err := rest.HTTPClientFor(&config)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 04:39:39 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/mylasta/direction/sponsor/FessCurtainFinallyHook.java

                final Method method = clazz.getMethod("shutdownAll", (Class<?>[]) null);
                method.invoke(null, (Object[]) null);
            } catch (final ClassNotFoundException e) {
                // ignore
            } catch (final Exception e) {
                logger.warn("Could not shutdown Commons HttpClient.", e);
            }
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/ResolveExceptionAnalyzer.java

            return isTimeoutException(rootCause) || isUnrecoverable5xxStatusCode(rootCause);
        }
    
        /**
         * See <a href="http://hc.apache.org/httpclient-3.x/exception-handling.html">HTTPClient exception handling</a> for more information.
         */
        private static boolean isTimeoutException(Throwable rootCause) {
            return rootCause instanceof InterruptedIOException;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  5. pkg/http/get.go

    func request(method, requestURL string, t time.Duration, headers map[string]string) (*bytes.Buffer, error) {
    	httpClient := &http.Client{
    		Timeout: t,
    	}
    
    	req, err := http.NewRequest(method, requestURL, nil)
    	if err != nil {
    		return nil, err
    	}
    	for k, v := range headers {
    		req.Header.Set(k, v)
    	}
    
    	response, err := httpClient.Do(req)
    	if err != nil {
    		return nil, err
    	}
    	defer response.Body.Close()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 03:52:10 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. samples/compare/src/test/kotlin/okhttp3/compare/JettyHttpClientTest.kt

    import assertk.assertions.isEqualTo
    import assertk.assertions.isNull
    import assertk.assertions.matches
    import mockwebserver3.MockResponse
    import mockwebserver3.MockWebServer
    import org.eclipse.jetty.client.HttpClient
    import org.junit.jupiter.api.AfterEach
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    
    /**
     * Jetty HTTP client.
     *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. internal/config/dns/operator_dns.go

    	if err != nil {
    		return newError(bucket, err)
    	}
    	if err = c.addAuthHeader(req); err != nil {
    		return newError(bucket, err)
    	}
    
    	resp, err := c.httpClient.Do(req)
    	if err != nil {
    		if derr := c.Delete(bucket); derr != nil {
    			return newError(bucket, derr)
    		}
    		return err
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	if resp.StatusCode != http.StatusOK {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/java-platform/recommender/kotlin/platform/build.gradle.kts

    plugins {
        `java-platform`
    }
    
    // tag::define-platform[]
    dependencies {
        constraints {
            // Platform declares some versions of libraries used in subprojects
            api("commons-httpclient:commons-httpclient:3.1")
            api("org.apache.commons:commons-lang3:3.8.1")
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 313 bytes
    - Viewed (0)
  9. platforms/documentation/docs/src/snippets/java-platform/recommender/groovy/platform/build.gradle

    plugins {
        id 'java-platform'
    }
    
    // tag::define-platform[]
    dependencies {
        constraints {
            // Platform declares some versions of libraries used in subprojects
            api 'commons-httpclient:commons-httpclient:3.1'
            api 'org.apache.commons:commons-lang3:3.8.1'
        }
    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 314 bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/es/client/CrawlerEngineClient.java

     */
    package org.codelibs.fess.es.client;
    
    import static org.codelibs.core.stream.StreamUtil.split;
    
    import org.codelibs.core.lang.StringUtil;
    import org.codelibs.fesen.client.HttpClient;
    import org.codelibs.fess.Constants;
    import org.codelibs.fess.crawler.client.FesenClient;
    import org.codelibs.fess.mylasta.direction.FessConfig;
    import org.codelibs.fess.util.ComponentUtil;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top