Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for ToHeader (0.19 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:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun May 05 16:56:21 UTC 2024
    - 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 {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 10 06:49:55 UTC 2024
    - 116.1K bytes
    - Viewed (0)
  4. internal/s3select/csv/reader_contrib_test.go

    `,
    			totalFields: 308*2 + 1,
    		}, {
    			file:            "nyc-taxi-data-noheader-100k.csv",
    			recordDelimiter: "\n",
    			fieldDelimiter:  ",",
    			header:          false,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 38.5K bytes
    - Viewed (0)
  5. 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...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 111.6K bytes
    - Viewed (0)
Back to top