Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,760 for Content (0.19 sec)

  1. docs_src/dependencies/tutorial011.py

    
    class FixedContentQueryChecker:
        def __init__(self, fixed_content: str):
            self.fixed_content = fixed_content
    
        def __call__(self, q: str = ""):
            if q:
                return self.fixed_content in q
            return False
    
    
    checker = FixedContentQueryChecker("bar")
    
    
    @app.get("/query-checker/")
    async def read_query_check(fixed_content_included: bool = Depends(checker)):
    Python
    - Registered: Sun Apr 14 07:19:09 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 504 bytes
    - Viewed (0)
  2. tests/embedded_struct_test.go

    		t.Errorf("Expected to get Author name %v but got: %v", NewPost.Author.Name, hnPost.Author.Name)
    	}
    
    	if !reflect.DeepEqual(NewPost.Author.Content, hnPost.Author.Content) {
    		t.Errorf("Expected to get Author content %v but got: %v", NewPost.Author.Content, hnPost.Author.Content)
    	}
    
    	if hnPost.Author.ContentPtr != nil {
    		t.Errorf("Expected to get nil Author contentPtr but got: %v", hnPost.Author.ContentPtr)
    	}
    
    Go
    - Registered: Sun Apr 14 09:35:11 GMT 2024
    - Last Modified: Thu Oct 26 03:58:13 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  3. build-logic/documentation/src/test/groovy/gradlebuild/docs/UserGuideTransformTaskTest.groovy

            given:
            String content = "test\ttest\ttest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
            actual == "test    test    test"
        }
    
        def usesUnixLineEndings() {
            given:
            String content = "test\r\ntest\r\ntest"
            when:
            def actual = UserGuideTransformTask.normalise(content)
    
            then:
    Groovy
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Tue Jul 27 19:28:51 GMT 2021
    - 1.9K bytes
    - Viewed (0)
  4. cmd/handler-utils.go

    	return globalSite.Region == "" || globalSite.Region == location
    }
    
    // Supported headers that needs to be extracted.
    var supportedHeaders = []string{
    	"content-type",
    	"cache-control",
    	"content-language",
    	"content-encoding",
    	"content-disposition",
    	"x-amz-storage-class",
    	xhttp.AmzStorageClass,
    	xhttp.AmzObjectTagging,
    	"expires",
    	xhttp.AmzBucketReplicationStatus,
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  5. okhttp/src/test/java/okhttp3/RequestBodyTest.kt

          FileInputStream(filePath.toFile()).use { fis ->
            fn(fis.fd)
          }
        }
      }
    
      private inline fun <T> assertOnPath(
        content: String? = null,
        fn: (okio.Path) -> T,
      ): T {
        FileSystem.SYSTEM.write(filePath) {
          if (content != null) {
            writeUtf8(content)
          }
        }
    
        return fn(filePath)
      }
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.6K bytes
    - Viewed (1)
  6. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

           *
           * Example:
           * ```
           * --> POST /greeting http/1.1
           * Host: example.com
           * Content-Type: plain/text
           * Content-Length: 3
           * --> END POST
           *
           * <-- 200 OK (22ms)
           * Content-Type: plain/text
           * Content-Length: 6
           * <-- END HTTP
           * ```
           */
          HEADERS,
    
          /**
    Plain Text
    - Registered: Fri Apr 19 11:42:09 GMT 2024
    - Last Modified: Sat Apr 06 09:14:38 GMT 2024
    - 11.2K bytes
    - Viewed (1)
  7. internal/etag/reader.go

    //	encryptedContent := Encrypt(compressedContent)
    //
    //	// Now, we need an io.Reader that can access
    //	// the ETag computed over the content.
    //	reader := etag.Wrap(encryptedContent, content)
    func Wrap(wrapped, content io.Reader) io.Reader {
    	if t, ok := content.(Tagger); ok {
    		return wrapReader{
    			Reader: wrapped,
    			Tagger: t,
    		}
    	}
    	return wrapReader{
    		Reader: wrapped,
    	}
    }
    
    Go
    - Registered: Sun Apr 07 19:28:10 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 4.8K bytes
    - Viewed (0)
  8. cmd/auth-handler_test.go

    		// Empty Content-Md5 header.
    		{mustNewSignedEmptyMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest},
    		// Short Content-Md5 header.
    		{mustNewSignedShortMD5Request(http.MethodPut, "http://127.0.0.1:9000/", 5, bytes.NewReader([]byte("hello")), t), ErrInvalidDigest},
    		// When request is properly signed, but has bad Content-MD5 header.
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  9. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

    #define EXPECT_TF_OK(x) EXPECT_EQ(TF_OK, TF_GetCode(x)) << TF_Message(x)
    
    static const char* content = "abcdefghijklmnopqrstuvwxyz1234567890";
    // We will work with content_view instead of content.
    static const absl::string_view content_view = content;
    
    namespace gcs = google::cloud::storage;
    
    static std::string InitializeTmpDir() {
      // This env should be something like `gs://bucket/path`
    C++
    - Registered: Tue Apr 16 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  10. cmd/object-api-deleteobject_test.go

    		err := obj.MakeBucket(context.Background(), testCase.bucketName, MakeBucketOptions{})
    		if err != nil {
    			t.Fatalf("%s : %s", instanceType, err.Error())
    		}
    
    		for _, object := range testCase.objectToUploads {
    			md5Bytes := md5.Sum([]byte(object.content))
    			oi, err := obj.PutObject(context.Background(), testCase.bucketName, object.name, mustGetPutObjReader(t, strings.NewReader(object.content),
    Go
    - Registered: Sun Apr 14 19:28:10 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 3.9K bytes
    - Viewed (0)
Back to top