Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 2,724 for Content (0.65 sec)

  1. okhttp/src/main/kotlin/okhttp3/RequestBody.kt

          message = "Moved to extension function. Put the 'content' argument first to fix Java",
          replaceWith =
            ReplaceWith(
              expression = "content.toRequestBody(contentType)",
              imports = ["okhttp3.RequestBody.Companion.toRequestBody"],
            ),
          level = DeprecationLevel.WARNING,
        )
        fun create(
          contentType: MediaType?,
          content: String,
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Jan 25 14:41:37 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

    class MultipartReaderTest {
      @Test fun `parse multipart`() {
        val multipart =
          """
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: abc
          |
          |abcd
          |efgh
          |--simple boundary
          |Content-Type: text/plain; charset=utf-8
          |Content-ID: ijk
          |
          |ijkl
          |mnop
          |
          |--simple boundary--
          """.trimMargin()
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        if (body != null) {
          val contentType = body.contentType()
          if (contentType != null) {
            requestBuilder.header("Content-Type", contentType.toString())
          }
    
          val contentLength = body.contentLength()
          if (contentLength != -1L) {
            requestBuilder.header("Content-Length", contentLength.toString())
            requestBuilder.removeHeader("Transfer-Encoding")
          } else {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.2K bytes
    - Viewed (2)
  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 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.5K bytes
    - Viewed (3)
  5. cmd/signature-v4-utils.go

    	}
    
    	// Skip if no header was set.
    	if !ok {
    		return true
    	}
    
    	// If x-amz-content-sha256 is set and the value is not
    	// 'UNSIGNED-PAYLOAD' we should validate the content sha256.
    	switch v[0] {
    	case unsignedPayload, unsignedPayloadTrailer:
    		return true
    	case emptySHA256:
    		// some broken clients set empty-sha256
    		// with > 0 content-length in the body,
    		// we should skip such clients and allow
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/net/HttpHeaders.java

      public static final String CONTENT_LOCATION = "Content-Location";
      /** The HTTP {@code Content-MD5} header field name. */
      public static final String CONTENT_MD5 = "Content-MD5";
      /** The HTTP {@code Content-Range} header field name. */
      public static final String CONTENT_RANGE = "Content-Range";
      /**
       * The HTTP <a href="http://w3.org/TR/CSP/#content-security-policy-header-field">{@code
       * Content-Security-Policy}</a> header field name.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 34.3K bytes
    - Viewed (0)
  7. 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 28 09:35:09 GMT 2024
    - Last Modified: Thu Oct 26 03:58:13 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_custom_response/test_tutorial009.py

    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 487 bytes
    - Viewed (0)
  9. tests/test_tutorial/test_custom_response/test_tutorial009b.py

    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial009b.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Jul 03 19:51:28 GMT 2021
    - 490 bytes
    - Viewed (0)
  10. tests/test_tutorial/test_custom_response/test_tutorial008.py

    
    def test_get(tmp_path: Path):
        file_path: Path = tmp_path / "large-video-file.mp4"
        tutorial008.some_file_path = str(file_path)
        test_content = b"Fake video bytes"
        file_path.write_bytes(test_content)
        response = client.get("/")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 487 bytes
    - Viewed (0)
Back to top