Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 969 for close1 (0.1 sec)

  1. guava-tests/test/com/google/common/io/ByteSourceTester.java

          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testOpenBufferedStream() throws IOException {
        InputStream in = source.openBufferedStream();
        try {
          byte[] readBytes = ByteStreams.toByteArray(in);
          assertExpectedBytes(readBytes);
        } finally {
          in.close();
        }
      }
    
      public void testRead() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. internal/config/identity/openid/jwt_test.go

              "alg":"RS256",
              "kid":"2011-04-29"}
           ]
         }`
    		w.Write([]byte(jsonkey))
    	}))
    	return server
    }
    
    func TestJWTHMACType(t *testing.T) {
    	server := initJWKSServer()
    	defer server.Close()
    
    	jwt := &jwtgo.Token{
    		Method: jwtgo.SigningMethodHS256,
    		Claims: jwtgo.StandardClaims{
    			ExpiresAt: 253428928061,
    			Audience:  "76b95ae5-33ef-4283-97b7-d2a85dc2d8f4",
    		},
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/http/ExternalHttp2Example.kt

          println("PROTOCOL ${response.protocol}")
          var line: String?
          while (response.body.source().readUtf8Line().also { line = it } != null) {
            println(line)
          }
        } finally {
          response.body.close()
        }
        client.connectionPool.evictAll()
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  4. tests/test_http_connection_injection.py

    @app.websocket("/ws")
    async def get_value_by_ws(
        websocket: WebSocket, value: int = Depends(extract_value_from_http_connection)
    ):
        await websocket.accept()
        await websocket.send_json(value)
        await websocket.close()
    
    
    client = TestClient(app)
    
    
    def test_value_extracting_by_http():
        response = client.get("/http")
        assert response.status_code == 200
        assert response.json() == 42
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 13:56:41 UTC 2020
    - 972 bytes
    - Viewed (0)
  5. src/Make.dist

    # The -v causes dist to print the name of each directory as it runs.
    # The -vv causes dist to print each build command as it runs.
    # go tool dist clean cleans all directories, not just this one,
    # but it's as close as we can get.
    
    # Default target (first).
    install:
    	go tool dist install -v
    
    verbose:
    	go tool dist install -vv
    
    clean:
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Feb 08 20:26:47 UTC 2012
    - 553 bytes
    - Viewed (0)
  6. src/main/webapp/WEB-INF/view/admin/crawlinginfo/admin_crawlinginfo_details.jsp

                                                            </h4>
                                                            <button type="button" class="close" data-dismiss="modal"
                                                                    aria-label="Close">
                                                                <span aria-hidden="true">×</span>
                                                            </button>
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Wed Feb 12 20:25:27 UTC 2020
    - 10.1K bytes
    - Viewed (0)
  7. internal/config/identity/openid/provider/keycloak.go

    	if err != nil {
    		return err
    	}
    	req.Header.Set("Content-Type", "application/x-www-form-urlencoded")
    
    	resp, err := k.client.Do(req)
    	if err != nil {
    		return err
    	}
    	defer resp.Body.Close()
    
    	var accessToken Token
    	if err = json.NewDecoder(resp.Body).Decode(&accessToken); err != nil {
    		return err
    	}
    
    	k.Lock()
    	k.accessToken = accessToken
    	k.Unlock()
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Jul 14 18:12:07 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteStreams.java

       * approaches 2 or 3 are used.
       */
      private static final int ZERO_COPY_CHUNK_SIZE = 512 * 1024;
    
      private ByteStreams() {}
    
      /**
       * Copies all bytes from the input stream to the output stream. Does not close or flush either
       * stream.
       *
       * <p><b>Java 9 users and later:</b> this method should be treated as deprecated; use the
       * equivalent {@link InputStream#transferTo} method instead.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Streams.java

                      return true;
                    }
                    return false;
                  }
                },
                isParallel)
            .onClose(streamA::close)
            .onClose(streamB::close);
      }
    
      /**
       * Invokes {@code consumer} once for each pair of <i>corresponding</i> elements in {@code streamA}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  10. okcurl/src/main/kotlin/okhttp3/curl/internal/-MainCommon.kt

        val source = response.body.source()
        while (!source.exhausted()) {
          out.write(source.buffer, source.buffer.size)
          out.flush()
        }
    
        response.body.close()
      } catch (e: IOException) {
        e.printStackTrace()
      } finally {
        close()
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top