Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. cmd/object-handlers.go

    		UserAgent:    r.UserAgent(),
    		Host:         handlers.GetSourceIP(r),
    	})
    
    	return
    }
    
    // GetObjectHandler - GET Object
    // ----------
    // This implementation of the GET operation retrieves object. To use GET,
    // you must have READ access to the object.
    func (api objectAPIHandlers) GetObjectHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "GetObject")
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  2. cmd/object-handlers_test.go

    		}
    		// Since `apiRouter` satisfies `http.Handler` it has a ServeHTTP to execute the logic of the handler.
    		// Call the ServeHTTP to execute the handler,`func (api objectAPIHandlers) GetObjectHandler`  handles the request.
    		apiRouter.ServeHTTP(rec, req)
    
    		// Assert the response code with the expected status.
    		if rec.Code != testCase.expectedRespStatus {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top