Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for writeResponse (0.13 sec)

  1. cmd/api-response.go

    func writeSuccessResponseJSON(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeJSON)
    }
    
    // writeSuccessResponseXML writes success headers and response if any,
    // with content-type set to `application/xml`.
    func writeSuccessResponseXML(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeXML)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

          val socketPolicy = response.socketPolicy
          if (socketPolicy === DisconnectAfterRequest) {
            socket.close()
            return
          }
          writeResponse(stream, request, response)
          if (logger.isLoggable(Level.FINE)) {
            logger.fine(
              "${this@MockWebServer} received request: $request " +
                "and responded: $response protocol is $protocol",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  3. cmd/object-api-options.go

    			APIErrorResponse: getAPIErrorResponse(
    				ctx,
    				apiErr,
    				r.URL.Path,
    				w.Header().Get(xhttp.AmzRequestID),
    				w.Header().Get(xhttp.AmzRequestHostID),
    			),
    		}
    
    		writeResponse(w, apiErr.HTTPStatusCode, encodeResponse(errResp), mimeXML)
    	}()
    
    	opts, err = getOpts(ctx, r, bucket, object)
    	if err != nil {
    		switch vErr := err.(type) {
    		case InvalidVersionID:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 21 21:13:59 UTC 2024
    - 14.4K bytes
    - Viewed (0)
Back to top