Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 114 for body (0.23 sec)

  1. cmd/peer-rest-client.go

    // after verifying format.json
    func (client *peerRESTClient) call(method string, values url.Values, body io.Reader, length int64) (respBody io.ReadCloser, err error) {
    	return client.callWithContext(GlobalContext, method, values, body, length)
    }
    
    // Wrapper to restClient.Call to handle network errors, in case of network error the connection is marked disconnected
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  2. cmd/api-datatypes.go

    	ReplicateDecisionStr string `xml:"-"`
    }
    
    // createBucketConfiguration container for bucket configuration request from client.
    // Used for parsing the location from the request body for Makebucket.
    type createBucketLocationConfiguration struct {
    	XMLName  xml.Name `xml:"CreateBucketConfiguration" json:"-"`
    	Location string   `xml:"LocationConstraint"`
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jan 03 09:28:52 GMT 2022
    - 3K bytes
    - Viewed (0)
  3. cmd/api-router.go

    //
    // When **no** flags are passed, the behavior is to trace both headers and body,
    // gzip the response and throttle the handler via `maxClients`. Each of these
    // can be disabled via the corresponding `s3HFlag`.
    //
    // CAUTION: for requests involving large req/resp bodies ensure to pass the
    // `traceHdrsS3HFlag`, otherwise both headers and body will be traced, causing
    // high memory usage!
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  4. cmd/batch-expire.go

    func (r BatchJobExpire) Notify(ctx context.Context, body io.Reader) error {
    	if r.NotificationCfg.Endpoint == "" {
    		return nil
    	}
    
    	ctx, cancel := context.WithTimeout(ctx, 10*time.Second)
    	defer cancel()
    
    	req, err := http.NewRequestWithContext(ctx, http.MethodPost, r.NotificationCfg.Endpoint, body)
    	if err != nil {
    		return err
    	}
    
    	if r.NotificationCfg.Token != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 21K bytes
    - Viewed (1)
  5. cmd/bucket-versioning-handler.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	v, err := versioning.ParseConfig(io.LimitReader(r.Body, maxBucketVersioningConfigSize))
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if globalSiteReplicationSys.isEnabled() && !v.Enabled() {
    		writeErrorResponse(ctx, w, APIError{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. istioctl/pkg/ztunnelconfig/ztunnelconfig_test.go

    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Wed Apr 10 21:51:29 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. cmd/bucket-notification-handlers.go

    	if r.ContentLength <= 0 {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrMissingContentLength), r.URL)
    		return
    	}
    
    	config, err := event.ParseConfig(io.LimitReader(r.Body, r.ContentLength), globalSite.Region, globalEventNotifier.targetList)
    	if err != nil {
    		apiErr := errorCodes.ToAPIErr(ErrMalformedXML)
    		if event.IsEventError(err) {
    			apiErr = toAPIError(ctx, err)
    		}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 5.1K bytes
    - Viewed (0)
  8. cmd/object-lambda-handlers.go

    		return
    	}
    
    	resp, err := target.Send(eventData)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	defer resp.Body.Close()
    
    	if eventData.GetObjectContext.OutputRoute != resp.Header.Get(xhttp.AmzRequestRoute) {
    		tokenErr := errorCodes.ToAPIErr(ErrInvalidRequest)
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Sep 15 04:58:17 GMT 2023
    - 10.2K bytes
    - Viewed (1)
  9. cmd/bitrot-streaming.go

    	shardSize  int64
    	hashBytes  []byte
    }
    
    func (b *streamingBitrotReader) Close() error {
    	if b.rc == nil {
    		return nil
    	}
    	if closer, ok := b.rc.(io.Closer); ok {
    		// drain the body for connection reuse at network layer.
    		xhttp.DrainBody(struct {
    			io.Reader
    			io.Closer
    		}{
    			Reader: b.rc,
    			Closer: closeWrapper(func() error { return nil }),
    		})
    		return closer.Close()
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  10. cni/pkg/nodeagent/cni-watcher.go

    		}
    	})
    	return nil
    }
    
    func (s *CniPluginServer) handleAddEvent(w http.ResponseWriter, req *http.Request) {
    	if req.Body == nil {
    		log.Error("empty request body")
    		http.Error(w, "empty request body", http.StatusBadRequest)
    		return
    	}
    	defer req.Body.Close()
    	data, err := io.ReadAll(req.Body)
    	if err != nil {
    		log.Errorf("Failed to read event report from cni plugin: %v", err)
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Thu Feb 08 18:52:24 GMT 2024
    - 6.1K bytes
    - Viewed (0)
Back to top