Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 132 for deflate (0.12 sec)

  1. src/compress/flate/deflate.go

    		level = 6
    		fallthrough
    	case 2 <= level && level <= 9:
    		d.compressionLevel = levels[level]
    		d.initDeflate()
    		d.fill = (*compressor).fillDeflate
    		d.step = (*compressor).deflate
    	default:
    		return fmt.Errorf("flate: invalid compression level %d: want value in range [-2, 9]", level)
    	}
    	return nil
    }
    
    func (d *compressor) reset(w io.Writer) {
    	d.w.reset(w)
    	d.sync = false
    	d.err = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 13:32:40 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    		},
    
    		{
    			name:               "ignore compression on deflate",
    			compressionEnabled: true,
    			out:                largePayload,
    			mediaType:          "application/json",
    			req: &http.Request{
    				Header: http.Header{
    					"Accept-Encoding": []string{"deflate"},
    				},
    				URL: &url.URL{Path: "/path"},
    			},
    			wantCode: http.StatusOK,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  3. src/cmd/distpack/pack.go

    		}
    	}()
    
    	zw := zip.NewWriter(out)
    	zw.RegisterCompressor(zip.Deflate, func(out io.Writer) (io.WriteCloser, error) {
    		return flate.NewWriter(out, flate.BestCompression)
    	})
    	for _, f = range a.Files {
    		h := check(zip.FileInfoHeader(f.Info()))
    		h.Name = f.Name
    		h.Method = zip.Deflate
    		w := check(zw.CreateHeader(h))
    		r := check(os.Open(f.Src))
    		check(io.Copy(w, r))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

        client.listener.assertTextMessage(message)
      }
    
      @Test
      fun messagesCompressedWhenConfigured() {
        val headers = headersOf("Sec-WebSocket-Extensions", "permessage-deflate")
        client.initWebSocket(random, responseHeaders = headers)
        server.initWebSocket(random, responseHeaders = headers)
        val message = repeat('a', RealWebSocket.DEFAULT_MINIMUM_DEFLATE_SIZE.toInt())
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  5. docs/changelogs/changelog_4x.md

     *  Fix: Don't crash decompressing web sockets messages. We had a bug where we assumed deflated
        bytes in would always yield deflated bytes out and this isn't always the case!
    
     *  Fix: Reliably update and invalidate the disk cache on windows. As originally designed our
        internal `DiskLruCache` assumes an inode-like file system, where it's fine to delete files that
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  6. cmd/admin-bucket-handlers.go

    			name:    filename,
    			size:    int64(sz),
    			mode:    0o600,
    			modTime: time.Now(),
    			isDir:   false,
    			sys:     nil,
    		})
    		if zerr == nil {
    			header.Method = zip.Deflate
    			zwriter, zerr := zipWriter.CreateHeader(header)
    			if zerr == nil {
    				io.Copy(zwriter, r)
    			}
    		}
    	}
    
    	cfgFiles := []string{
    		bucketPolicyConfig,
    		bucketNotificationConfig,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  7. src/net/http/request_test.go

    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.52 Safari/537.17
    Accept-Encoding: gzip,deflate,sdch
    Accept-Language: en-US,en;q=0.8
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-provider/src/integTest/groovy/org/gradle/internal/declarativedsl/settings/SoftwareTypeDeclarationIntegrationTest.groovy

        MavenHttpPluginRepository pluginPortal = MavenHttpPluginRepository.asGradlePluginPortal(executer, mavenRepo)
    
        @Rule
        MavenHttpPluginRepository mavenHttpRepo = new MavenHttpPluginRepository(mavenRepo)
    
        def 'can declare and configure a custom software type from included build'() {
            given:
            withSoftwareTypePlugins().prepareToExecute()
    
            file("settings.gradle.dcl") << pluginsFromIncludedBuild
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun May 19 16:59:01 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

            val distributionRuntimeOnly = bucket("${prefix}TestDistributionRuntimeOnly", "Declare the distribution that is required to run tests")
            val localRepository = bucket("${prefix}TestLocalRepository", "Declare a local repository required as input data for the tests (e.g. :tooling-api)")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 13 23:14:25 UTC 2024
    - 12K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/query-params-str-validations.md

        It is used by Pydantic and FastAPI to explicitly declare that a value is required.
    
    This will let **FastAPI** know that this parameter is required.
    
    ### Required with `None`
    
    You can declare that a parameter can accept `None`, but that it's still required. This would force clients to send a value, even if the value is `None`.
    
    To do that, you can declare that `None` is a valid type but still use `...` as the default:
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 31 02:38:05 UTC 2024
    - 25.8K bytes
    - Viewed (0)
Back to top