Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 1,934 for Response_ (0.05 seconds)

  1. tests/test_no_schema_split.py

    
    def test_create_message():
        response = client.post("/messages", params={"input_message": "Hello"})
        assert response.status_code == 200, response.text
        assert response.json() == {
            "input": "Hello",
            "output": {"body": "Processed: Hello", "events": []},
        }
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 14:34:02 GMT 2026
    - 6.5K bytes
    - Click Count (0)
  2. docs/es/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial004_py310.py hl[17:27] *}
    
    ## Responses Adicionales { #additional-responses }
    
    Probablemente has visto cómo declarar el `response_model` y el `status_code` para una *path operation*.
    
    Eso define los metadatos sobre el response principal de una *path operation*.
    
    También puedes declarar responses adicionales con sus modelos, códigos de estado, etc.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  3. tests/test_arbitrary_types.py

                            "summary": "Test",
                            "operationId": "test__get",
                            "responses": {
                                "200": {
                                    "description": "Successful Response",
                                    "content": {
                                        "application/json": {
                                            "schema": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  4. docs/pt/docs/tutorial/handling-errors.md

    Por exemplo, você pode querer retornar uma *response* em *plain text* ao invés de um JSON para os seguintes erros:
    
    {* ../../docs_src/handling_errors/tutorial004_py310.py hl[3:4,9:11,25] *}
    
    /// note | Detalhes Técnicos
    
    Você pode usar `from starlette.responses import PlainTextResponse`.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:20:43 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  5. internal/grid/stream.go

    import (
    	"context"
    	"errors"
    )
    
    // A Stream is a two-way stream.
    // All responses *must* be read by the caller.
    // If the call is canceled through the context,
    // the appropriate error will be returned.
    type Stream struct {
    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jun 07 15:51:52 GMT 2024
    - 3.1K bytes
    - Click Count (0)
  6. tests/test_tutorial/test_body_multiple_params/test_tutorial003.py

                    "msg": "Field required",
                    "input": None,
                },
            ]
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
                "openapi": "3.1.0",
                "info": {"title": "FastAPI", "version": "0.1.0"},
                "paths": {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 8.1K bytes
    - Click Count (0)
  7. internal/grid/grid_test.go

    	}
    	// Start processing requests.
    	close(processHandler)
    
    	// Drain responses
    	got := 0
    	for resp := range st.responses {
    		// t.Log("got response", resp)
    		errFatal(resp.Err)
    		if resp.Msg[0] != byte(got) {
    			t.Error("expected response", got, "got", resp.Msg[0])
    		}
    		got++
    	}
    	if got != 100 {
    		t.Error("expected 100 responses, got", got)
    	}
    }
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 36.1K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/util/transport/Transport.java

         *
         * @param request the request to send
         * @param response the response object to populate
         * @param timeout the maximum time to wait for the response in milliseconds
         * @throws IOException if an I/O error occurs during communication
         */
        public synchronized void sendrecv(final Request request, final Response response, long timeout) throws IOException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  9. docs/ja/docs/advanced/additional-status-codes.md

    /// warning
    
    上の例のように `Response` を直接返すと、それはそのまま返されます。
    
    モデルなどによってシリアライズされません。
    
    必要なデータが含まれていること、そして(`JSONResponse` を使用している場合)値が有効な JSON であることを確認してください。
    
    ///
    
    /// note | 技術詳細
    
    `from starlette.responses import JSONResponse` を使うこともできます。
    
    **FastAPI** は開発者の利便性のために、`fastapi.responses` と同じ `starlette.responses` を提供しています。しかし、利用可能なレスポンスのほとんどは Starlette から直接提供されています。`status` も同様です。
    
    ///
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:07:17 GMT 2026
    - 2.4K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/ExchangeCodec.kt

      fun finishRequest()
    
      /**
       * Parses bytes of a response header from an HTTP transport.
       *
       * @param expectContinue true to return null if this is an intermediate response with a "100"
       * response code. Otherwise this method never returns null.
       */
      @Throws(IOException::class)
      fun readResponseHeaders(expectContinue: Boolean): Response.Builder?
    
      @Throws(IOException::class)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jul 29 21:11:09 GMT 2025
    - 3.3K bytes
    - Click Count (0)
Back to Top