Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 342 for printf (0.17 sec)

  1. docs/features/events.md

    Request request = new Request.Builder()
        .url("https://publicobject.com/helloworld.txt")
        .build();
    
    System.out.println("REQUEST 1 (new connection)");
    try (Response response = client.newCall(request).execute()) {
      // Consume and discard the response body.
      response.body().source().readByteString();
    }
    
    System.out.println("REQUEST 2 (pooled connection)");
    try (Response response = client.newCall(request).execute()) {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 7.7K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/CancelCall.kt

        // Schedule a job to cancel the call in 1 second.
        executor.schedule({
          System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f)
          call.cancel()
          System.out.printf("%.2f Canceled call.%n", (System.nanoTime() - startNanos) / 1e9f)
        }, 1, TimeUnit.SECONDS)
    
        System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f)
        try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. docs/recipes.md

            executor.schedule({
              System.out.printf("%.2f Canceling call.%n", (System.nanoTime() - startNanos) / 1e9f)
              call.cancel()
              System.out.printf("%.2f Canceled call.%n", (System.nanoTime() - startNanos) / 1e9f)
            }, 1, TimeUnit.SECONDS)
    
            System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f)
            try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  4. okhttp/src/test/java/okhttp3/TestTls13Request.kt

    private fun sendRequest(
      client: OkHttpClient,
      url: String,
    ) {
      System.out.printf("%-40s ", url)
      System.out.flush()
      println(Platform.get())
      val request =
        Request.Builder()
          .url(url)
          .build()
      try {
        client.newCall(request).execute().use { response ->
          val handshake = response.handshake
          println(
            "${handshake!!.tlsVersion} ${handshake.cipherSuite} ${response.protocol} " +
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  5. Makefile

    GOLANGCI = $(GOLANGCI_DIR)/golangci-lint
    
    all: build
    
    checks: ## check dependencies
    	@echo "Checking dependencies"
    	@(env bash $(PWD)/buildscripts/checkdeps.sh)
    
    help: ## print this help
    	@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-40s\033[0m %s\n", $$1, $$2}'
    
    getdeps: ## fetch necessary dependencies
    	@mkdir -p ${GOPATH}/bin
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:55:41 GMT 2024
    - 10.3K bytes
    - Viewed (1)
  6. common/Makefile.common.mk

    lint-dockerfiles:
    	@${FINDFILES} -name 'Dockerfile*' -print0 | ${XARGS} hadolint -c ./common/config/.hadolint.yml
    
    lint-scripts:
    	@${FINDFILES} -name '*.sh' -print0 | ${XARGS} -n 256 shellcheck
    
    lint-yaml:
    	@${FINDFILES} \( -name '*.yml' -o -name '*.yaml' \) -not -exec grep -q -e "{{" {} \; -print0 | ${XARGS} yamllint -c ./common/config/.yamllint.yml
    
    lint-helm:
    	@${FINDFILES} -name 'Chart.yaml' -print0 | ${XARGS} -L 1 dirname | xargs -r helm lint --strict
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Sat Mar 02 20:07:36 GMT 2024
    - 5.9K bytes
    - Viewed (0)
  7. Makefile.core.mk

    # Place the variable Q in front of a command to control echoing of the command being executed.
    Q = $(if $(filter 1,$VERBOSE),,@)
    # Use the variable H to add a header (equivalent to =>) to informational output
    H = $(shell printf "\033[34;1m=>\033[0m")
    
    ifeq ($(origin DEBUG), undefined)
      BUILDTYPE_DIR:=release
    else ifeq ($(DEBUG),0)
      BUILDTYPE_DIR:=release
    else
      BUILDTYPE_DIR:=debug
      export GCFLAGS:=all=-N -l
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 26 19:45:17 GMT 2024
    - 22.5K bytes
    - Viewed (0)
  8. docs/bucket/notifications/README.md

     // Create server connection
     natsConnection, _ := nats.Connect("nats://yourusername:yoursecret@localhost:4222")
     log.Println("Connected")
    
     // Subscribe to subject
     log.Printf("Subscribing to subject 'bucketevents'\n")
     natsConnection.Subscribe("bucketevents", func(msg *nats.Msg) {
    
      // Handle the message
      log.Printf("Received message '%s\n", string(msg.Data)+"'")
     })
    
     // Keep the connection alive
     runtime.Goexit()
    }
    Plain Text
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 84K bytes
    - Viewed (2)
  9. samples/tlssurvey/src/main/kotlin/okhttp3/survey/CipherSuiteSurvey.kt

     */
    class CipherSuiteSurvey(
      val clients: List<Client>,
      val ianaSuites: IanaSuites,
      val orderBy: List<SuiteId>,
    ) {
      fun printGoogleSheet() {
        print("name")
        for (client in clients) {
          print("\t")
          print(client.nameAndVersion)
        }
        println()
        val sortedSuites =
          ianaSuites.suites.sortedBy { ianaSuite ->
            val index = orderBy.indexOfFirst { it.matches(ianaSuite) }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Tue Apr 02 01:44:15 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  10. analysis/analysis-api-fir/analysis-api-fir-generator/src/org/jetbrains/kotlin/analysis/api/fir/generator/rendererrs/KtDiagnosticClassRenderer.kt

                    println()
                }
            }
        }
    
        private fun SmartPrinter.printDiagnosticClass(diagnostic: HLDiagnostic, diagnosticList: HLDiagnosticList) {
            print("interface ${diagnostic.className} : KtFirDiagnostic<")
            printTypeWithShortNames(diagnostic.original.psiType)
            print(">")
            inBracketsWithIndent {
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Tue Jul 18 11:49:20 GMT 2023
    - 2.4K bytes
    - Viewed (0)
Back to top