Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for h2 (0.12 sec)

  1. okhttp/src/test/java/okhttp3/OkHttpClientTest.kt

        assertFailsWith<IllegalArgumentException> {
          OkHttpClient.Builder()
            .protocols(listOf(Protocol.H2_PRIOR_KNOWLEDGE, Protocol.H2_PRIOR_KNOWLEDGE))
        }.also { expected ->
          assertThat(expected.message).isEqualTo(
            "protocols containing h2_prior_knowledge cannot use other protocols: " +
              "[h2_prior_knowledge, h2_prior_knowledge]",
          )
        }
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  2. src/archive/tar/tar_test.go

    		}
    		if got, want := h2.Size, v.h.Size; got != want {
    			t.Errorf("i=%d: Size: got %v, want %v", i, got, want)
    		}
    		if got, want := h2.Uid, v.h.Uid; got != want {
    			t.Errorf("i=%d: Uid: got %d, want %d", i, got, want)
    		}
    		if got, want := h2.Gid, v.h.Gid; got != want {
    			t.Errorf("i=%d: Gid: got %d, want %d", i, got, want)
    		}
    		if got, want := h2.Uname, v.h.Uname; got != want {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  3. internal/grid/grid_test.go

    		return resp, nil
    	}
    	// Return error
    	h2 := NewSingleHandler[*MSS, *MSS](handlerTest2, NewMSS, NewMSS)
    	handler2 := func(req *MSS) (resp *MSS, err *RemoteErr) {
    		defer req.Recycle()
    		r := RemoteErr(req.Get("err"))
    		return nil, &r
    	}
    	errFatal(h1.Register(local, handler1))
    	errFatal(h2.Register(local, handler2))
    
    	errFatal(h1.Register(remote, handler1))
    	errFatal(h2.Register(remote, handler2))
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  4. doc/go_mem.html

    <!--{
    	"Title": "The Go Memory Model",
    	"Subtitle": "Version of June 6, 2022",
    	"Path": "/ref/mem"
    }-->
    
    <style>
    p.rule {
      font-style: italic;
    }
    </style>
    
    <h2 id="introduction">Introduction</h2>
    
    <p>
    The Go memory model specifies the conditions under which
    reads of a variable in one goroutine can be guaranteed to
    observe values produced by writes to the same variable in a different goroutine.
    </p>
    
    
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Mar 04 15:54:42 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

        set(value) {
          val protocolList = value.toImmutableList()
          require(Protocol.H2_PRIOR_KNOWLEDGE !in protocolList || protocolList.size == 1) {
            "protocols containing h2_prior_knowledge cannot use other protocols: $protocolList"
          }
          require(Protocol.HTTP_1_1 in protocolList || Protocol.H2_PRIOR_KNOWLEDGE in protocolList) {
            "protocols doesn't contain http/1.1: $protocolList"
          }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

            throw UnknownServiceException(
              "CLEARTEXT communication to $host not permitted by network security policy",
            )
          }
        } else {
          if (Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols) {
            throw UnknownServiceException("H2_PRIOR_KNOWLEDGE cannot be used with HTTPS")
          }
        }
    
        val tunnelRequest =
          when {
            route.requiresTunnel() -> createTunnelRequest(route)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            connectTls(sslSocket, connectionSpec)
            user.secureConnectEnd(handshake)
          } else {
            socket = rawSocket
            protocol =
              when {
                Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols -> Protocol.H2_PRIOR_KNOWLEDGE
                else -> Protocol.HTTP_1_1
              }
          }
    
          val connection =
            RealConnection(
              taskRunner = taskRunner,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

        this.withLock {
          successCount++
        }
      }
    
      @Throws(IOException::class)
      fun start() {
        idleAtNs = System.nanoTime()
        if (protocol == Protocol.HTTP_2 || protocol == Protocol.H2_PRIOR_KNOWLEDGE) {
          startHttp2()
        }
      }
    
      @Throws(IOException::class)
      private fun startHttp2() {
        val socket = this.socket!!
        val source = this.source!!
        val sink = this.sink!!
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. src/archive/tar/common.go

    		return FormatUnknown, nil, headerError{"cannot manually encode TypeXHeader, TypeGNULongName, or TypeGNULongLink headers"}
    	case TypeXGlobalHeader:
    		h2 := Header{Name: h.Name, Typeflag: h.Typeflag, Xattrs: h.Xattrs, PAXRecords: h.PAXRecords, Format: h.Format}
    		if !reflect.DeepEqual(h, h2) {
    			return FormatUnknown, nil, headerError{"only PAXRecords should be set for TypeXGlobalHeader"}
    		}
    		whyOnlyPAX = "only PAX supports TypeXGlobalHeader"
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  10. build-logic/dependency-modules/src/main/kotlin/gradlebuild/modules/extension/ExternalModulesExtension.kt

        val groovyTest = "$groovyGroup:groovy-test"
        val groovyXml = "$groovyGroup:groovy-xml"
        val gson = "com.google.code.gson:gson"
        val guava = "com.google.guava:guava"
        val h2Database = "com.h2database:h2"
        val hamcrest = "org.hamcrest:hamcrest-core"
        val httpcore = "org.apache.httpcomponents:httpcore"
        val inject = "javax.inject:javax.inject"
        val ivy = "org.apache.ivy:ivy"
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Apr 16 15:50:58 GMT 2024
    - 14.4K bytes
    - Viewed (0)
Back to top