Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 58 of 58 for body (0.13 sec)

  1. cmd/s3-zip-handlers.go

    		return
    	}
    	// s3zip does not allow ranges
    	w.Header().Del(xhttp.AcceptRanges)
    
    	setHeadGetRespHeaders(w, r.Form)
    
    	httpWriter := xioutil.WriteOnClose(w)
    
    	// Write object content to response body
    	if _, err = xioutil.Copy(httpWriter, rc); err != nil {
    		if !httpWriter.HasWritten() {
    			// write error response only if no data or headers has been written to client yet
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 09 10:41:25 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. cmd/object-api-interface.go

    	CheckDMReplicationReady bool // Is delete marker ready to be replicated - set only during HEAD
    	Tagging                 bool // Is only in GET/HEAD operations to return tagging metadata along with regular metadata and body.
    
    	UserDefined         map[string]string   // only set in case of POST/PUT operations
    	ObjectAttributes    map[string]struct{} // Attribute tags defined by the users for the GetObjectAttributes request
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 17K bytes
    - Viewed (0)
  3. cmd/batch-handlers.go

    	}
    	req.Header.Set("Content-Type", "application/json")
    
    	clnt := http.Client{Transport: getRemoteInstanceTransport()}
    	resp, err := clnt.Do(req)
    	if err != nil {
    		return err
    	}
    
    	xhttp.DrainBody(resp.Body)
    	if resp.StatusCode != http.StatusOK {
    		return errors.New(resp.Status)
    	}
    
    	return nil
    }
    
    // Notify notifies notification endpoint if configured regarding job failure or success.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  4. istioctl/pkg/proxystatus/proxystatus_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 May 08 22:53:08 GMT 2024
    - Last Modified: Fri Mar 15 08:28:50 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/archive/tar/common.go

    const (
    	// Type '0' indicates a regular file.
    	TypeReg = '0'
    
    	// Deprecated: Use TypeReg instead.
    	TypeRegA = '\x00'
    
    	// Type '1' to '6' are header-only flags and may not have a data body.
    	TypeLink    = '1' // Hard link
    	TypeSymlink = '2' // Symbolic link
    	TypeChar    = '3' // Character device node
    	TypeBlock   = '4' // Block device node
    	TypeDir     = '5' // Directory
    	TypeFifo    = '6' // FIFO node
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  6. cmd/bucket-handlers.go

    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(ErrEntityTooLarge), r.URL)
    		return
    	}
    
    	// Unmarshal list of keys to be deleted.
    	deleteObjectsReq := &DeleteObjectsRequest{}
    	if err := xmlDecoder(r.Body, deleteObjectsReq, maxBodySize); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	objects := make([]ObjectV, len(deleteObjectsReq.Objects))
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  7. internal/logger/target/http/http.go

    	}
    
    	resp, err := h.client.Do(req)
    	if err != nil {
    		return fmt.Errorf("%s returned '%w', please check your endpoint configuration", h.Endpoint(), err)
    	}
    
    	// Drain any response.
    	xhttp.DrainBody(resp.Body)
    
    	switch resp.StatusCode {
    	case http.StatusOK, http.StatusCreated, http.StatusAccepted, http.StatusNoContent:
    		// accepted HTTP status codes.
    		return nil
    	case http.StatusForbidden:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  8. internal/s3select/unused-errors.go

    		statusCode: 401,
    		cause:      err,
    	}
    }
    
    func errEmptyRequestBody(err error) *s3Error {
    	return &s3Error{
    		code:       "EmptyRequestBody",
    		message:    "Request body cannot be empty.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errUnsupportedRangeHeader(err error) *s3Error {
    	return &s3Error{
    		code:       "UnsupportedRangeHeader",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 17.5K bytes
    - Viewed (0)
Back to top