Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for get_deps (0.19 sec)

  1. tests/test_repeated_dependency_schema.py

    app = FastAPI()
    
    
    def get_header(*, someheader: str = Header()):
        return someheader
    
    
    def get_something_else(*, someheader: str = Depends(get_header)):
        return f"{someheader}123"
    
    
    @app.get("/")
    def get_deps(dep1: str = Depends(get_header), dep2: str = Depends(get_something_else)):
        return {"dep1": dep1, "dep2": dep2}
    
    
    client = TestClient(app)
    
    schema = {
        "components": {
            "schemas": {
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. Makefile

    lint: getdeps ## runs golangci-lint suite of linters
    	@echo "Running $@ check"
    	@$(GOLANGCI) run --build-tags kqueue --timeout=10m --config ./.golangci.yml
    
    lint-fix: getdeps ## runs golangci-lint suite of linters with automatic fixes
    	@echo "Running $@ check"
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 12:48:19 GMT 2024
    - 10.1K bytes
    - Viewed (1)
  3. src/main/java/jcifs/util/Crypto.java

        }
    
    
        /**
         * @param key
         *            7 or 8 byte DES key
         * @return DES cipher in encryption mode
         */
        public static Cipher getDES ( byte[] key ) {
            if ( key.length == 7 ) {
                return getDES(des7to8(key));
            }
    
            try {
                Cipher c = Cipher.getInstance("DES/ECB/NoPadding");
                c.init(Cipher.ENCRYPT_MODE, new SecretKeySpec(key, "DES"));
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Tue Aug 17 17:34:29 GMT 2021
    - 5.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmUtil.java

            byte[] key7 = new byte[7];
            byte[] e8 = new byte[8];
    
            for ( int i = 0; i < key.length / 7; i++ ) {
                System.arraycopy(key, i * 7, key7, 0, 7);
                Cipher des = Crypto.getDES(key7);
                des.update(data, 0, data.length, e8);
                System.arraycopy(e8, 0, e, i * 8, 8);
            }
        }
    
    Java
    - Registered: Sun Apr 21 00:10:10 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 9.7K bytes
    - Viewed (0)
Back to top