Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for Content (0.24 sec)

  1. tests/test_application.py

        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "window.opener.swaggerUIRedirectOauth2" in response.text
    
    
    def test_redoc():
        response = client.get("/redoc")
        assert response.status_code == 200, response.text
        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "redoc@next" in response.text
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 21:56:59 GMT 2024
    - 52.2K bytes
    - Viewed (0)
  2. cmd/test-utils_test.go

    	}
    
    	contentLength := calculateStreamContentLength(dataLength, chunkSize)
    
    	req.Header.Set("x-amz-content-sha256", "STREAMING-AWS4-HMAC-SHA256-PAYLOAD")
    	req.Header.Set("content-encoding", "aws-chunked")
    	req.Header.Set("x-amz-decoded-content-length", strconv.FormatInt(dataLength, 10))
    	req.Header.Set("content-length", strconv.FormatInt(contentLength, 10))
    
    	// Seek back to beginning.
    	body.Seek(0, 0)
    
    	// Add body
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:06:57 GMT 2024
    - 75.7K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    		// re-encoding them. (FIXME?)
    		for k := range content.policies {
    			content.policies[k] = nil
    			gotContent.policies[k] = nil
    		}
    		if !reflect.DeepEqual(content.policies, gotContent.policies) {
    			c.Fatalf("import %d: policies mismatch: expected: %v, got: %v", caseNum, content.policies, gotContent.policies)
    		}
    	}
    
    	if !reflect.DeepEqual(content.ldapUserPolicyMappings, gotContent.ldapUserPolicyMappings) {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. cmd/erasure-object.go

    // object operations.
    func (er erasureObjects) PutObject(ctx context.Context, bucket string, object string, data *PutObjReader, opts ObjectOptions) (objInfo ObjectInfo, err error) {
    	return er.putObject(ctx, bucket, object, data, opts)
    }
    
    // putObject wrapper for erasureObjects PutObject
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  5. cmd/api-errors.go

    // errors returned by underlying layers.
    func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
    	if err == nil {
    		return ErrNone
    	}
    
    	// Errors that are generated by net.Conn and any context errors must be handled here.
    	if errors.Is(err, os.ErrDeadlineExceeded) || errors.Is(err, context.DeadlineExceeded) {
    		return ErrRequestTimedout
    	}
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
  6. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

            .status("HTTP/1.1 204")
            .removeHeader("Content-Length")
            .build()
        server.enqueue(responseWithoutBody)
        val call = client.newCall(Request(server.url("/foo")))
        val response = call.execute()
    
        // Body contains nothing.
        assertThat(response.body.bytes().size).isEqualTo(0)
        assertThat(response.body.contentLength()).isEqualTo(0)
    
        // Content-Length header doesn't exist in a 204 response.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  7. cmd/bucket-handlers.go

    		return
    	}
    
    	// Content-Md5 is required should be set
    	// http://docs.aws.amazon.com/AmazonS3/latest/API/multiobjectdeleteapi.html
    	if _, ok := r.Header[xhttp.ContentMD5]; !ok {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingContentMD5), r.URL)
    		return
    	}
    
    	// Content-Length is required and should be non-zero
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    		})
    	}
    
    	return stats
    }
    
    func targetStatus(ctx context.Context, h logger.Target) madmin.Status {
    	if h.IsOnline(ctx) {
    		return madmin.Status{Status: string(madmin.ItemOnline)}
    	}
    	return madmin.Status{Status: string(madmin.ItemOffline)}
    }
    
    // fetchLoggerDetails return log info
    func fetchLoggerInfo(ctx context.Context) ([]madmin.Logger, []madmin.Audit) {
    	var loggerInfo []madmin.Logger
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 97.3K bytes
    - Viewed (2)
  9. cmd/erasure-server-pool.go

    func (z *erasureServerPools) StorageInfo(ctx context.Context, metrics bool) StorageInfo {
    	return globalNotificationSys.StorageInfo(z, metrics)
    }
    
    func (z *erasureServerPools) NSScanner(ctx context.Context, updates chan<- DataUsageInfo, wantCycle uint32, healScanMode madmin.HealScanMode) error {
    	// Updates must be closed before we return.
    	defer xioutil.SafeClose(updates)
    
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  10. cmd/admin-handlers-users.go

    	}
    	condValues["DurationSeconds"] = []string{strconv.FormatInt(int64(exp.Sub(time.Now()).Seconds()), 10)}
    }
    
    func commonAddServiceAccount(r *http.Request) (context.Context, auth.Credentials, newServiceAccountOpts, madmin.AddServiceAccountReq, string, APIError) {
    	ctx := r.Context()
    
    	// Get current object layer instance.
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil || globalNotificationSys == nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 77.3K bytes
    - Viewed (0)
Back to top