Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ToHeader (0.25 sec)

  1. cmd/httprange.go

    		return ""
    	}
    	off, length, err := h.GetOffsetLength(resourceSize)
    	if err != nil {
    		return ""
    	}
    	return fmt.Sprintf("%d-%d", off, off+length-1)
    }
    
    // ToHeader returns the Range header value.
    func (h *HTTPRangeSpec) ToHeader() (string, error) {
    	if h == nil {
    		return "", nil
    	}
    	start := strconv.Itoa(int(h.Start))
    	end := strconv.Itoa(int(h.End))
    	switch {
    	case h.Start >= 0 && h.End >= 0:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 24 14:56:28 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  2. cmd/httprange_test.go

    		if err != nil {
    			if !testCase.errExpected || err == nil && testCase.errExpected {
    				t.Errorf("unexpected err: %v", err)
    			}
    			continue
    		}
    		h, err := rs.ToHeader()
    		if err != nil && !testCase.errExpected || err == nil && testCase.errExpected {
    			t.Errorf("expected error with invalid range: %v", err)
    		}
    		if h != testCase.spec {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Mar 08 21:58:55 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  3. cmd/bucket-replication.go

    		Internal: minio.AdvancedGetOptions{
    			ReplicationProxyRequest: "true",
    		},
    		PartNumber: opts.PartNumber,
    	}
    	// get correct offsets for encrypted object
    	if rs != nil {
    		h, err := rs.ToHeader()
    		if err != nil {
    			return nil, proxy, err
    		}
    		gopts.Set(xhttp.Range, h)
    	}
    	// Make sure to match ETag when proxying.
    	if err = gopts.SetMatchETag(oi.ETag); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  4. internal/s3select/csv/reader_contrib_test.go

    `,
    			totalFields: 308*2 + 1,
    		}, {
    			file:            "nyc-taxi-data-noheader-100k.csv",
    			recordDelimiter: "\n",
    			fieldDelimiter:  ",",
    			header:          false,
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 38.5K bytes
    - Viewed (0)
  5. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const SOL_SOCKET = 65535
    pkg syscall (netbsd-arm64-cgo), const SOMAXCONN = 128
    pkg syscall (netbsd-arm64-cgo), const SO_NOHEADER = 4106
    pkg syscall (netbsd-arm64-cgo), const SO_NOHEADER ideal-int
    pkg syscall (netbsd-arm64-cgo), const SO_NOSIGPIPE = 2048
    pkg syscall (netbsd-arm64-cgo), const SO_NOSIGPIPE ideal-int
    pkg syscall (netbsd-arm64-cgo), const SO_OOBINLINE = 256
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  6. api/go1.2.txt

    pkg syscall (netbsd-386), const SO_ACCEPTFILTER ideal-int
    pkg syscall (netbsd-386), const SO_DEBUG ideal-int
    pkg syscall (netbsd-386), const SO_ERROR ideal-int
    pkg syscall (netbsd-386), const SO_NOHEADER ideal-int
    pkg syscall (netbsd-386), const SO_NOSIGPIPE ideal-int
    pkg syscall (netbsd-386), const SO_OOBINLINE ideal-int
    pkg syscall (netbsd-386), const SO_OVERFLOWED ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 18 04:36:59 GMT 2013
    - 1.9M bytes
    - Viewed (2)
  7. internal/s3select/csv/testdata/testdata.zip

    40.809379577636719 1 1.20 7 0 0.5 0 0 7.5 2 1 166 42 green 0.00 0.0 0.0 54 40 8.05 1312 209.01 1 Manhattan 020901 1020901 E MN09 Morningside Heights 3802 1647 224 1 Manhattan 022400 1022400 E MN03 Central Harlem North-Polo Grounds 3803 nyc-taxi-data-noheader-100k.csv 3389224 2 2014-03-26 00:26:15 2014-03-26 00:28:38 N 1 -73.950431823730469 40.792251586914063 -73.938949584960937 40.794425964355469 1 0.84 4.5 0.5 0.5 1 0 6.5 1 1 75 74 green 0.00 0.0 0.0 36 24 11.86 1267 168 1 Manhattan 016800 1016800 E...
    ZIP Archive
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 111.6K bytes
    - Viewed (0)
  8. api/go1.1.txt

    pkg syscall (netbsd-386), const SO_ERROR = 4103
    pkg syscall (netbsd-386), const SO_KEEPALIVE = 8
    pkg syscall (netbsd-386), const SO_LINGER = 128
    pkg syscall (netbsd-386), const SO_NOHEADER = 4106
    pkg syscall (netbsd-386), const SO_NOSIGPIPE = 2048
    pkg syscall (netbsd-386), const SO_OOBINLINE = 256
    pkg syscall (netbsd-386), const SO_OVERFLOWED = 4105
    pkg syscall (netbsd-386), const SO_RCVBUF = 4098
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Mar 31 20:37:15 GMT 2022
    - 2.6M bytes
    - Viewed (0)
Back to top