Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewRecorder (0.05 sec)

  1. cmd/object-handlers_test.go

    			var reqV4, reqV2 *http.Request
    			var recV4, recV2 *httptest.ResponseRecorder
    
    			// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    			recV4 = httptest.NewRecorder()
    			recV2 = httptest.NewRecorder()
    			// setting a non-existent uploadID.
    			// deliberately introducing the invalid value to be able to assert the response with the expected error response.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  2. cmd/object-handlers.go

    					})
    					writeResponse(w, serr.HTTPStatusCode(), encodedErrorResponse, mimeXML)
    				} else {
    					writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    				}
    				return
    			}
    			nr := httptest.NewRecorder()
    			rw := xhttp.NewResponseRecorder(nr)
    			rw.LogErrBody = true
    			rw.LogAllBody = true
    			rreq.SelectParameters.Evaluate(rw)
    			rreq.SelectParameters.Close()
    			return
    		}
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
Back to top