Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1661 - 1670 of 7,250 for return (0.14 sec)

  1. docs_src/security/tutorial002.py

    
    def fake_decode_token(token):
        return User(
            username=token + "fakedecoded", email="******@****.***", full_name="John Doe"
        )
    
    
    async def get_current_user(token: str = Depends(oauth2_scheme)):
        user = fake_decode_token(token)
        return user
    
    
    @app.get("/users/me")
    async def read_users_me(current_user: User = Depends(get_current_user)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 755 bytes
    - Viewed (0)
  2. docs_src/dependencies/tutorial012_an_py39.py

            raise HTTPException(status_code=400, detail="X-Key header invalid")
        return x_key
    
    
    app = FastAPI(dependencies=[Depends(verify_token), Depends(verify_key)])
    
    
    @app.get("/items/")
    async def read_items():
        return [{"item": "Portal Gun"}, {"item": "Plumbus"}]
    
    
    @app.get("/users/")
    async def read_users():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 756 bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/aether/LegacyRepositorySystemSessionExtender.java

                        p.setNtlmHost(authCtx.get(AuthenticationContext.NTLM_WORKSTATION));
                        authCtx.close();
                    }
                    return p;
                }
            }
            return null;
        }
    
        private void injectAuthentication(AuthenticationSelector selector, List<ArtifactRepository> repositories) {
            if (repositories != null && selector != null) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-decom.go

    				return false
    			case evt.Action.Delete():
    				globalExpiryState.enqueueByDays(objInfo, evt, lcEventSrc_Decom)
    				return true
    			default:
    				return false
    			}
    		}
    
    		decommissionEntry := func(entry metaCacheEntry) {
    			defer wk.Give()
    
    			if entry.isDir() {
    				return
    			}
    
    			fivs, err := entry.fileInfoVersions(bi.Name)
    			if err != nil {
    				return
    			}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 13:20:19 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  5. internal/bucket/bandwidth/monitor.go

    func SelectBuckets(buckets ...string) SelectionFunction {
    	if len(buckets) == 0 {
    		return func(bucket string) bool {
    			return true
    		}
    	}
    	return func(bucket string) bool {
    		for _, bkt := range buckets {
    			if bkt == bucket {
    				return true
    			}
    		}
    		return false
    	}
    }
    
    // Details for the measured bandwidth
    type Details struct {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Feb 19 22:54:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  6. cmd/acl-handlers.go

    			return
    		}
    
    		if len(acl.AccessControlList.Grants) == 0 {
    			writeErrorResponse(ctx, w, toAPIError(ctx, NotImplemented{}), r.URL)
    			return
    		}
    
    		if acl.AccessControlList.Grants[0].Permission != "FULL_CONTROL" {
    			writeErrorResponse(ctx, w, toAPIError(ctx, NotImplemented{}), r.URL)
    			return
    		}
    	}
    
    	if aclHeader != "" && aclHeader != "private" {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/service/FavoriteLogService.java

                    ComponentUtil.getSearchLogHelper().writeSearchLogEvent(favoriteLog);
                }
                return true;
            }).orElse(false);
        }
    
        public List<String> getUrlList(final String userCode, final List<String> urlList) {
            if (urlList.isEmpty()) {
                return urlList;
            }
    
            return userInfoBhv.selectByPK(userCode).map(userInfo -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. cni/pkg/plugin/testdata/include-exclude-ip.txt.golden

    -A ISTIO_OUTPUT -o lo -s 127.0.0.6/32 -j RETURN
    -A ISTIO_OUTPUT -o lo ! -d 127.0.0.1/32 -p tcp ! --dport 15008 -m owner --uid-owner 1337 -j ISTIO_IN_REDIRECT
    -A ISTIO_OUTPUT -m owner --uid-owner 1337 -j RETURN
    -A ISTIO_OUTPUT -o lo ! -d 127.0.0.1/32 -p tcp ! --dport 15008 -m owner --gid-owner 1337 -j ISTIO_IN_REDIRECT
    -A ISTIO_OUTPUT -m owner --gid-owner 1337 -j RETURN
    -A ISTIO_OUTPUT -d 127.0.0.1/32 -j RETURN
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jun 06 03:53:23 UTC 2024
    - 1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComOpenAndXResponse.java

            bufferIndex += 2;
            serverFid = readInt4( buffer, bufferIndex );
            bufferIndex += 6;
    
            return bufferIndex - start;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            return 0;
        }
        public String toString() {
            return new String( "SmbComOpenAndXResponse[" +
                super.toString() +
                ",fid=" + fid +
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb1/com/SmbComDelete.java

            return 0;
        }
    
    
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) {
            return 0;
        }
    
    
        @Override
        public String toString () {
            return new String(
                "SmbComDelete[" + super.toString() + ",searchAttributes=0x" + Hexdump.toHexString(this.searchAttributes, 4) + ",fileName=" + this.path
                        + "]");
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.3K bytes
    - Viewed (0)
Back to top