Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for mustGetRequestID (0.15 sec)

  1. cmd/api-headers.go

    	xhttp "github.com/minio/minio/internal/http"
    	xxml "github.com/minio/xxml"
    )
    
    // Returns a hexadecimal representation of time at the
    // time response is sent to the client.
    func mustGetRequestID(t time.Time) string {
    	return fmt.Sprintf("%X", t.UnixNano())
    }
    
    // setEventStreamHeaders to allow proxies to avoid buffering proxy responses
    func setEventStreamHeaders(w http.ResponseWriter) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.9K bytes
    - Viewed (1)
  2. cmd/generic-handlers.go

    		// part of the log entry, Error response XML and auditing.
    		// Set custom headers such as x-amz-request-id for each request.
    		w.Header().Set(xhttp.AmzRequestID, mustGetRequestID(UTCNow()))
    		if globalLocalNodeName != "" {
    			w.Header().Set(xhttp.AmzRequestHostID, globalLocalNodeNameHex)
    		}
    		h.ServeHTTP(w, r)
    	})
    }
    
    // criticalErrorHandler handles panics and fatal errors by
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
Back to top