Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 143 for Extract (0.13 sec)

  1. cmd/handler-utils_test.go

    				"Content-Type": []string{"image/png"},
    			},
    			metadata: map[string]string{
    				"content-type": "image/png",
    			},
    			shouldFail: false,
    		},
    		// Validate if there are no keys to extract.
    		{
    			header: http.Header{
    				"Test-1": []string{"123"},
    			},
    			metadata:   map[string]string{},
    			shouldFail: false,
    		},
    		// Validate that there are all headers extracted
    		{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Feb 22 06:26:06 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. cmd/bucket-listobjects-handlers.go

    	if metadata {
    		checkObjMeta = func(name string, action policy.Action) (s3Err APIErrorCode) {
    			return checkRequestAuthType(ctx, r, action, bucket, name)
    		}
    	}
    	urlValues := r.Form
    
    	// Extract all the listBucketVersions query params to their native values.
    	prefix, marker, delimiter, maxkeys, encodingType, versionIDMarker, errCode := getListBucketObjectVersionsArgs(urlValues)
    	if errCode != ErrNone {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 11 03:13:30 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  3. internal/crypto/sse-c.go

    	return metadata
    }
    
    // ParseMetadata extracts all SSE-C related values from the object metadata
    // and checks whether they are well-formed. It returns the sealed object key
    // on success.
    func (ssec) ParseMetadata(metadata map[string]string) (sealedKey SealedKey, err error) {
    	// Extract all required values from object metadata
    	b64IV, ok := metadata[MetaIV]
    	if !ok {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/query-param-models.md

    /// tip
    
    Prefer to use the `Annotated` version if possible.
    
    ///
    
    ```Python hl_lines="9-13  17"
    {!> ../../docs_src/query_param_models/tutorial001_py310.py!}
    ```
    
    ////
    
    **FastAPI** will **extract** the data for **each field** from the **query parameters** in the request and give you the Pydantic model you defined.
    
    ## Check the Docs
    
    You can see the query parameters in the docs UI at `/docs`:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. cmd/signature-v4.go

    	if err != ErrNone {
    		return err
    	}
    
    	// Extract all the signed headers along with its values.
    	extractedSignedHeaders, errCode := extractSignedHeaders(signV4Values.SignedHeaders, r)
    	if errCode != ErrNone {
    		return errCode
    	}
    
    	cred, _, s3Err := checkKeyValid(r, signV4Values.Credential.accessKey)
    	if s3Err != ErrNone {
    		return s3Err
    	}
    
    	// Extract date, if not present throw error.
    	var date string
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 16 23:13:47 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  6. okhttp-android/src/test/kotlin/okhttp3/android/AndroidAsyncDnsTest.kt

    @RunWith(RobolectricTestRunner::class)
    class AndroidAsyncDnsTest {
      @Test
      fun testDnsRequestInvalid() {
        val asyncDns = AndroidAsyncDns.IPv4
        val shadowDns: ShadowDnsResolver = Shadow.extract(asyncDns.resolver)
    
        shadowDns.responder = {
          throw IllegalArgumentException("Network.fromNetworkHandle refusing to instantiate NETID_UNSET Network.")
        }
    
        val dns = AsyncDns.toDns(asyncDns)
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 22 20:07:09 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/NullnessCasts.java

       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
       * or extract a variable, and put the suppression on that. However, a local variable typically
       * doesn't work: Because nullness analyses typically infer the nullness of local variables,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/NullnessCasts.java

       * typically useful for {@code return} statements. That leaves the code with two options: Either
       * add the suppression to the whole method (which turns off checking for a large section of code),
       * or extract a variable, and put the suppression on that. However, a local variable typically
       * doesn't work: Because nullness analyses typically infer the nullness of local variables,
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 10 20:36:34 UTC 2022
    - 3.5K bytes
    - Viewed (0)
  9. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/MavenBuildTimestamp.java

            this(time, properties != null ? properties.get(BUILD_TIMESTAMP_FORMAT_PROPERTY) : null);
        }
    
        /**
         *
         * @deprecated Use {@link #MavenBuildTimestamp(Date, Map)} or extract the format and pass it
         *             to {@link #MavenBuildTimestamp(Date, String)} instead.
         */
        @Deprecated
        public MavenBuildTimestamp(Date time, Properties properties) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  10. cmd/handler-utils.go

    }
    
    func extractMetadata(ctx context.Context, mimesHeader ...textproto.MIMEHeader) (metadata map[string]string, err error) {
    	metadata = make(map[string]string)
    
    	for _, hdr := range mimesHeader {
    		// Extract all query values.
    		err = extractMetadataFromMime(ctx, hdr, metadata)
    		if err != nil {
    			return nil, err
    		}
    	}
    
    	// Set content-type to default value if it is not set.
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 15.5K bytes
    - Viewed (0)
Back to top