Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for http2client (0.16 sec)

  1. src/net/http/doc.go

    can do so by setting [Transport.TLSNextProto] (for clients) or
    [Server.TLSNextProto] (for servers) to a non-nil, empty
    map. Alternatively, the following GODEBUG settings are
    currently supported:
    
    	GODEBUG=http2client=0  # disable HTTP/2 client support
    	GODEBUG=http2server=0  # disable HTTP/2 server support
    	GODEBUG=http2debug=1   # enable verbose HTTP/2 debug logs
    	GODEBUG=http2debug=2   # ... even more verbose, with frame dumps
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/internal/godebugs/table.go

    	{Name: "gocachehash", Package: "cmd/go"},
    	{Name: "gocachetest", Package: "cmd/go"},
    	{Name: "gocacheverify", Package: "cmd/go"},
    	{Name: "gotypesalias", Package: "go/types", Changed: 23, Old: "0"},
    	{Name: "http2client", Package: "net/http"},
    	{Name: "http2debug", Package: "net/http", Opaque: true},
    	{Name: "http2server", Package: "net/http"},
    	{Name: "httplaxcontentlength", Package: "net/http", Changed: 22, Old: "1"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. doc/godebug.md

    The environment variable `GODEBUG`
    can hold a comma-separated list of these settings.
    For example, if a Go program is running in an environment that contains
    
    	GODEBUG=http2client=0,http2server=0
    
    then that Go program will disable the use of HTTP/2 by default in both
    the HTTP client and the HTTP server.
    It is also possible to set the default `GODEBUG` for a given program
    (discussed below).
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  4. src/internal/godebug/godebug_test.go

    		got := tt.setting.Value()
    		if got != tt.want {
    			t.Errorf("get(%q, %q) = %q; want %q", tt.godebug, tt.setting.Name(), got, tt.want)
    		}
    	}
    }
    
    func TestMetrics(t *testing.T) {
    	const name = "http2client" // must be a real name so runtime will accept it
    
    	var m [1]metrics.Sample
    	m[0].Name = "/godebug/non-default-behavior/" + name + ":events"
    	metrics.Read(m[:])
    	if kind := m[0].Value.Kind(); kind != metrics.KindUint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. src/runtime/metrics/doc.go

    		package due to a non-default GODEBUG=gotypesalias=... setting.
    
    	/godebug/non-default-behavior/http2client:events
    		The number of non-default behaviors executed by the net/http
    		package due to a non-default GODEBUG=http2client=... setting.
    
    	/godebug/non-default-behavior/http2server:events
    		The number of non-default behaviors executed by the net/http
    		package due to a non-default GODEBUG=http2server=... setting.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    	return t.DialTLS != nil || t.DialTLSContext != nil
    }
    
    var http2client = godebug.New("http2client")
    
    // onceSetNextProtoDefaults initializes TLSNextProto.
    // It must be called via t.nextProtoOnce.Do.
    func (t *Transport) onceSetNextProtoDefaults() {
    	t.tlsNextProtoWasNil = (t.TLSNextProto == nil)
    	if http2client.Value() == "0" {
    		http2client.IncNonDefault()
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. regression-test/src/androidTest/java/okhttp/regression/compare/ApacheHttpClientTest.kt

      private var httpClient = HttpClients.createDefault()
    
      @After fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get() {
        val request = HttpGet("https://google.com/robots.txt")
    
        httpClient.execute(request).use { response ->
          assertEquals(200, response.code)
          // TODO enable ALPN later
          assertEquals(HttpVersion.HTTP_1_1, response.version)
        }
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt

     */
    class ApacheHttpClientTest {
      private val httpClient = HttpClients.createDefault()
    
      @AfterEach fun tearDown() {
        httpClient.close()
      }
    
      @Test fun get(server: MockWebServer) {
        server.enqueue(
          MockResponse.Builder()
            .body("hello, Apache HttpClient 5.x")
            .build(),
        )
    
        val request = HttpGet(server.url("/").toUri())
        request.addHeader("Accept", "text/plain")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. 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)
  10. regression-test/build.gradle.kts

        sourceCompatibility(JavaVersion.VERSION_11)
      }
    
      kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11.toString()
      }
    
      // issue merging due to conflict with httpclient and something else
      packagingOptions.resources.excludes += setOf(
        "META-INF/DEPENDENCIES"
      )
    }
    
    
    dependencies {
      val okhttpLegacyVersion = "3.12.12"
    
      implementation(libs.kotlin.reflect)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Dec 23 14:46:51 UTC 2023
    - 1.6K bytes
    - Viewed (0)
Back to top