 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const ( ErrClientCanceled = "the request was cancelled by the client" ErrDeadlineExceeded = "" /* 159-byte string literal not displayed */ )
      View Source
      
  const StatusClientClosedRequest = 499
    StatusClientClosedRequest is the status code for when a client request cancellation of an http request
Variables ¶
This section is empty.
Functions ¶
func ClientHTTPStatusAndError ¶
ClientHTTPStatusAndError returns error and http status that is "safe" to return to client without exposing any implementation details.
func Error ¶
func Error(w http.ResponseWriter, err error)
Error write a go error with the correct status code.
func ErrorWithStatus ¶
func ErrorWithStatus(w http.ResponseWriter, err error, status int)
func K6Middleware ¶ added in v1.10.0
func K6Middleware() middleware.Interface
K6Middleware creates a middleware that extracts k6 load test labels from the request baggage and adds them as dynamic profiling labels.
Types ¶
This section is empty.
 Click to show internal directories. 
   Click to hide internal directories.