Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 219 for validating (0.14 sec)

  1. cmd/xl-storage-format-v1.go

    )
    
    // Valid - tells us if the format is sane by validating
    // format version and erasure coding information.
    func (m *xlMetaV1Object) valid() bool {
    	return isXLMetaFormatValid(m.Version, m.Format) &&
    		isXLMetaErasureInfoValid(m.Erasure.DataBlocks, m.Erasure.ParityBlocks)
    }
    
    // Verifies if the backend format metadata is sane by validating
    // the version string and format style.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/using-request-directly.md

    Up to now, you have been declaring the parts of the request that you need with their types.
    
    Taking data from:
    
    * The path as parameters.
    * Headers.
    * Cookies.
    * etc.
    
    And by doing so, **FastAPI** is validating that data, converting it and generating documentation for your API automatically.
    
    But there are situations where you might need to access the `Request` object directly.
    
    ## Details about the `Request` object
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

    import java.util.HashMap;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Queue;
    import java.util.Set;
    
    /**
     * Utilities for collecting and validating tester requirements from annotations.
     *
     * @author George van den Driessche
     */
    @GwtIncompatible
    public final class FeatureUtil {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/features/FeatureUtil.java

    import java.util.HashMap;
    import java.util.LinkedHashSet;
    import java.util.List;
    import java.util.Locale;
    import java.util.Map;
    import java.util.Queue;
    import java.util.Set;
    
    /**
     * Utilities for collecting and validating tester requirements from annotations.
     *
     * @author George van den Driessche
     */
    @GwtIncompatible
    public final class FeatureUtil {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 05 22:05:05 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. docs/en/docs/advanced/security/oauth2-scopes.md

    And then we validate that data with the Pydantic model (catching the `ValidationError` exception), and if we get an error reading the JWT token or validating the data with Pydantic, we raise the `HTTPException` we created before.
    
    For that, we update the Pydantic model `TokenData` with a new property `scopes`.
    
    By validating the data with Pydantic we can make sure that we have, for example, exactly a `list` of `str` with the scopes and a `str` with the `username`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:02:16 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. cmd/iam.go

    				iamLogIf(ctx, nerr.Err)
    			}
    		}
    	}
    
    	return nil
    }
    
    // CurrentPolicies - returns comma separated policy string, from
    // an input policy after validating if there are any current
    // policies which exist on MinIO corresponding to the input.
    func (sys *IAMSys) CurrentPolicies(policyName string) string {
    	if !sys.Initialized() {
    		return ""
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  7. cmd/object-handlers_test.go

    		objectName string
    		accessKey  string
    		secretKey  string
    		// expected output.
    		expectedRespStatus int // expected response status body.
    	}{
    		// Test case - 1.
    		// Fetching stat info of object and validating it.
    		{
    			bucketName:         bucketName,
    			objectName:         objectName,
    			accessKey:          credentials.AccessKey,
    			secretKey:          credentials.SecretKey,
    			expectedRespStatus: http.StatusOK,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
  8. cmd/object-api-multipart_test.go

    			expectedError: ioutil.ErrOverread,
    		},
    
    		// Test case - 16-19.
    		// Validating for success cases.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 09:42:21 UTC 2024
    - 88.8K bytes
    - Viewed (0)
  9. cmd/auth-handler.go

    	_, ok := supportedS3AuthTypes[aType]
    	return ok
    }
    
    // setAuthMiddleware to validate authorization header for the incoming request.
    func setAuthMiddleware(h http.Handler) http.Handler {
    	// handler for validating incoming authorization headers.
    	return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    
    		aType := getRequestAuthType(r)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. cmd/xl-storage_test.go

    		// volume is non-existent.
    		{
    			volName:     "nonexistent-vol",
    			expectedErr: errVolumeNotFound,
    		},
    		// TestXLStorage case - 3.
    		// It shouldn't be possible to delete an non-empty volume, validating the same.
    		{
    			volName:     "nonempty-vol",
    			expectedErr: errVolumeNotEmpty,
    		},
    		// TestXLStorage case - 5.
    		// Invalid volume name.
    		{
    			volName:     "ab",
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 66.7K bytes
    - Viewed (0)
Back to top