Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 379 for RESPONSE (0.09 sec)

  1. okhttp/src/main/kotlin/okhttp3/Response.kt

        }
    
        internal constructor(response: Response) {
          this.request = response.request
          this.protocol = response.protocol
          this.code = response.code
          this.message = response.message
          this.handshake = response.handshake
          this.headers = response.headers.newBuilder()
          this.body = response.body
          this.networkResponse = response.networkResponse
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 06 09:38:30 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  2. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/response-model.md

    Und Tools werden auch glücklich sein, weil sowohl `RedirectResponse` als auch `JSONResponse` Unterklassen von `Response` sind, die Typannotation ist daher korrekt.
    
    ### Eine Unterklasse von Response annotieren
    
    Sie können auch eine Unterklasse von `Response` in der Typannotation verwenden.
    
    ```Python hl_lines="8-9"
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  4. docs/pt/docs/advanced/custom-response.md

    Mas você também pode declarar a `Response` que você deseja utilizar (e.g. qualquer subclasse de `Response`), em um *decorador de operação de rota* utilizando o parâmetro `response_class`.
    
    Os conteúdos que você retorna em sua *função de operador de rota* serão colocados dentro dessa `Response`.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue Oct 29 11:47:10 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. docs/em/docs/tutorial/response-model.md

    ```
    
    👉 🙅 💼 🍵 🔁 FastAPI ↩️ 📨 🆎 ✍ 🎓 (⚖️ 🏿) `Response`.
    
    & 🧰 🔜 😄 ↩️ 👯‍♂️ `RedirectResponse` & `JSONResponse` 🏿 `Response`, 🆎 ✍ ☑.
    
    ### ✍ 📨 🏿
    
    👆 💪 ⚙️ 🏿 `Response` 🆎 ✍:
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/response_model/tutorial003_03.py!}
    ```
    
    👉 🔜 👷 ↩️ `RedirectResponse` 🏿 `Response`, & FastAPI 🔜 🔁 🍵 👉 🙅 💼.
    
    ### ❌ 📨 🆎 ✍
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/response-model.md

    And tools will also be happy because both `RedirectResponse` and `JSONResponse` are subclasses of `Response`, so the type annotation is correct.
    
    ### Annotate a Response Subclass
    
    You can also use a subclass of `Response` in the type annotation:
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/response_model/tutorial003_03.py!}
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. docs/ja/docs/advanced/custom-response.md

    デフォルトでは、**FastAPI** は `JSONResponse` を使ってレスポンスを返します。
    
    [レスポンスを直接返す](response-directly.md){.internal-link target=_blank}で見たように、 `Response` を直接返すことでこの挙動をオーバーライドできます。
    
    しかし、`Response` を直接返すと、データは自動的に変換されず、ドキュメントも自動生成されません (例えば、生成されるOpenAPIの一部としてHTTPヘッダー `Content-Type` に特定の「メディアタイプ」を含めるなど) 。
    
    しかし、*path operationデコレータ* に、使いたい `Response` を宣言することもできます。
    
    *path operation関数* から返されるコンテンツは、その `Response` に含まれます。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. docs/de/docs/advanced/custom-response.md

    # Benutzerdefinierte Response – HTML, Stream, Datei, andere
    
    Standardmäßig gibt **FastAPI** die Responses mittels `JSONResponse` zurück.
    
    Sie können das überschreiben, indem Sie direkt eine `Response` zurückgeben, wie in [Eine Response direkt zurückgeben](response-directly.md){.internal-link target=_blank} gezeigt.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/custom-response.md

    # Custom Response - HTML, Stream, File, others
    
    By default, **FastAPI** will return the responses using `JSONResponse`.
    
    You can override it by returning a `Response` directly as seen in [Return a Response directly](response-directly.md){.internal-link target=_blank}.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  10. docs/ru/docs/tutorial/response-model.md

    И ваши помощники разработки также будут счастливы, т.к. оба класса `RedirectResponse` и `JSONResponse` являются подклассами `Response`. Таким образом мы получаем корректную аннотацию типа.
    
    ### Подкласс Response в аннотации типа
    
    Вы также можете указать подкласс `Response` в аннотации типа:
    
    ```Python hl_lines="8-9"
    {!> ../../docs_src/response_model/tutorial003_03.py!}
    ```
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 30.4K bytes
    - Viewed (0)
Back to top