Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for PutRequest (0.04 sec)

  1. internal/grid/handlers.go

    func (h *StreamTypeHandler[Payload, Req, Resp]) NewRequest() Req {
    	return h.reqPool.Get().(Req)
    }
    
    // PutRequest will accept a request for reuse.
    // These should be returned by the handler.
    func (h *StreamTypeHandler[Payload, Req, Resp]) PutRequest(r Req) {
    	if r != h.nilReq {
    		//nolint:staticcheck // SA6002 IT IS A GENERIC VALUE! (and always a pointer)
    		h.reqPool.Put(r)
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 09 16:58:30 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  2. cmd/server_test.go

    		buffer := bytes.NewReader([]byte("testcontent"))
    		putRequest, err := newTestSignedRequest(http.MethodPut, getPutObjectURL(s.endPoint, bucketName, objectName),
    			int64(buffer.Len()), buffer, s.accessKey, s.secretKey, s.signer)
    		c.Assert(err, nil)
    		response, err = s.client.Do(putRequest)
    		c.Assert(err, nil)
    		c.Assert(response.StatusCode, http.StatusOK)
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top