Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 63 for Response_ (0.14 sec)

  1. cmd/api-response.go

    	w.WriteHeader(statusCode)
    	if response != nil {
    		w.Write(response)
    	}
    }
    
    // mimeType represents various MIME type used API responses.
    type mimeType string
    
    const (
    	// Means no response type.
    	mimeNone mimeType = ""
    	// Means response type is JSON.
    	mimeJSON mimeType = "application/json"
    	// Means response type is XML.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  2. docs/ko/docs/tutorial/response-status-code.md

    <img src="https://fastapi.tiangolo.com/img/tutorial/response-status-code/image02.png">
    
    !!! note "기술적 세부사항"
        `from starlette import status` 역시 사용할 수 있습니다.
    
        **FastAPI**는 개발자인 여러분의 편의를 위해 `fastapi.status` 와 동일한 `starlette.status` 도 제공합니다. 하지만 이것은 Starlette로부터 직접 제공됩니다.
    
    ## 기본값 변경
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 14 15:06:53 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  3. internal/grid/handlers.go

    // when it has been returned on a handler.
    // This will disable automatic response recycling/pooling.
    // Typically this is used when the response sharing part of its data structure.
    func (h *SingleHandler[Req, Resp]) WithSharedResponse() *SingleHandler[Req, Resp] {
    	h.sharedResp = true
    	return h
    }
    
    // NewResponse creates a new response.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  4. pilot/pkg/xds/delta_test.go

    			staticCluster: "",
    			updateCluster: "",
    		},
    	})
    
    	// Expect that we send an EDS response even though there was no request
    	resp := ads.ExpectResponse()
    	if resp.TypeUrl != v3.EndpointType {
    		t.Fatalf("unexpected response type %v. Expected dependent EDS response", resp.TypeUrl)
    	}
    	// we must NOT get the cluster back
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  5. cmd/bucket-handlers_test.go

    		if rec.Code != testCase.expectedRespStatus {
    			t.Errorf("Test %d: %s: Expected the response status to be `%d`, but instead found `%d`", i+1, instanceType, testCase.expectedRespStatus, rec.Code)
    		}
    
    		// Verify response the V2 signed HTTP request.
    		// initialize HTTP NewRecorder, this records any mutations to response writer inside the handler.
    		recV2 := httptest.NewRecorder()
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 39.8K bytes
    - Viewed (0)
  6. cmd/storage-rest-server.go

    	err := req.DecodeMsg(mr)
    	if err != nil {
    		rw.CloseWithError(err)
    		return
    	}
    
    	mw := msgp.NewWriter(rw)
    	responses := make(chan ReadMultipleResp, len(req.Files))
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		for resp := range responses {
    			err := resp.EncodeMsg(mw)
    			if err != nil {
    				rw.CloseWithError(err)
    				return
    			}
    			mw.Flush()
    		}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 44.8K bytes
    - Viewed (0)
  7. docs/en/docs/release-notes.md

    ## 0.29.0
    
    * Add support for declaring a `Response` parameter:
        * This allows declaring:
            * [Response Cookies](https://fastapi.tiangolo.com/advanced/response-cookies/).
            * [Response Headers](https://fastapi.tiangolo.com/advanced/response-headers/).
            * An HTTP Status Code different than the default: [Response - Change Status Code](https://fastapi.tiangolo.com/advanced/response-change-status-code/).
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 14 15:07:37 UTC 2024
    - 395.4K bytes
    - Viewed (0)
  8. tests/integration/ambient/baseline_test.go

    	// Check that each response saw one of the workload IPs for the src echo instance
    	addresses := sets.New(src.WorkloadsOrFail(t).Addresses()...)
    	return check.Each(func(response echot.Response) error {
    		if !addresses.Contains(response.IP) {
    			return fmt.Errorf("expected original source (%v) to be propogated, but got %v", addresses.UnsortedList(), response.IP)
    		}
    		return nil
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/TestThread.java

        }
      }
    
      /**
       * Receives a response from this thread.
       *
       * @throws TimeoutException if this thread does not offer a response within a reasonable amount of
       *     time
       * @throws AssertionFailedError if the given method name does not match the name of the method
       *     this thread has called most recently
       */
      private Response getResponse(String methodName) throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        }
      }
    
      /**
       * Receives a response from this thread.
       *
       * @throws TimeoutException if this thread does not offer a response within a reasonable amount of
       *     time
       * @throws AssertionFailedError if the given method name does not match the name of the method
       *     this thread has called most recently
       */
      private Response getResponse(String methodName) throws Exception {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top