Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for proxyRequestByToken (0.08 sec)

  1. cmd/batch-handlers.go

    		return
    	}
    
    	jobID := r.Form.Get("id")
    	if jobID == "" {
    		writeErrorResponseJSON(ctx, w, toAPIError(ctx, errInvalidArgument), r.URL)
    		return
    	}
    
    	if _, proxied, _ := proxyRequestByToken(ctx, w, r, jobID, true); proxied {
    		return
    	}
    
    	if err := globalBatchJobPool.canceler(jobID, true); err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrInvalidRequest, err), r.URL)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.5K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    	if errCode != ErrNone {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(errCode), r.URL)
    		return
    	}
    
    	// Analyze the heal token and route the request accordingly
    	token, _, success := proxyRequestByToken(ctx, w, r, hip.clientToken, false)
    	if success {
    		return
    	}
    	hip.clientToken = token
    	// if request was not successful, try this server locally if token
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
Back to top