Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 781 - 790 of 1,553 for Response_ (0.11 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/zh-hant/docs/tutorial/middleware.md

    ///
    
    /// note | 技術細節
    
    你也可以使用 `from starlette.requests import Request`。
    
    **FastAPI** 為了方便開發者而提供了它,但實際上它直接來自 Starlette。
    
    ///
    
    ### 在 `response` 之前與之後 { #before-and-after-the-response }
    
    你可以在任何*路徑操作*接收 `request` 之前,加入要執行的程式碼。
    
    也可以在產生出 `response` 之後、回傳之前執行程式碼。
    
    例如,你可以新增一個自訂標頭 `X-Process-Time`,其內容為處理請求並產生回應所花費的秒數:
    
    {* ../../docs_src/middleware/tutorial001_py310.py hl[10,12:13] *}
    
    /// tip
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 3.7K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/app/web/base/login/ActionResponseCredential.java

     */
    package org.codelibs.fess.app.web.base.login;
    
    import java.util.function.Supplier;
    
    import org.lastaflute.web.login.credential.LoginCredential;
    import org.lastaflute.web.response.ActionResponse;
    
    /**
     * The credential for action response.
     */
    public class ActionResponseCredential implements LoginCredential {
    
        private final Supplier<ActionResponse> action;
    
        /**
         * Constructor.
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  3. docs/en/docs/tutorial/background-tasks.md

    # Background Tasks { #background-tasks }
    
    You can define background tasks to be run *after* returning a response.
    
    This is useful for operations that need to happen after a request, but that the client doesn't really have to be waiting for the operation to complete before receiving the response.
    
    This includes, for example:
    
    * Email notifications sent after performing an action:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 4.7K bytes
    - Click Count (0)
  4. docs_src/additional_responses/tutorial003_py310.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    class Message(BaseModel):
        message: str
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
        responses={
            404: {"model": Message, "description": "The item was not found"},
            200: {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 837 bytes
    - Click Count (0)
  5. scripts/people.py

            raise RuntimeError(response.text)
        data = response.json()
        if "errors" in data:
            logging.error(f"Errors in response, after: {after}, category_id: {category_id}")
            logging.error(data["errors"])
            logging.error(response.text)
            raise RuntimeError(response.text)
        return data
    
    
    def get_graphql_question_discussion_edges(
        *,
        settings: Settings,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Mon Mar 23 13:51:24 GMT 2026
    - 15K bytes
    - Click Count (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/PostMultipart.kt

            .url("https://api.imgur.com/3/image")
            .post(requestBody)
            .build()
    
        client.newCall(request).execute().use { response ->
          if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
          println(response.body.string())
        }
      }
    
      companion object {
        /**
         * The imgur client ID for OkHttp recipes. If you're using imgur for anything other than running
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. tests/test_response_model_invalid.py

        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", responses={"500": {"model": NonPydanticModel}})
            def read_root():
                pass  # pragma: nocover
    
    
    def test_invalid_response_model_sub_type_in_responses_raises():
        with pytest.raises(FastAPIError):
            app = FastAPI()
    
            @app.get("/", responses={"500": {"model": list[NonPydanticModel]}})
            def read_root():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.1K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/fess/app/web/profile/ProfileAction.java

        /**
         * Displays the profile index page.
         *
         * @return the HTML response
         */
        @Execute
        public HtmlResponse index() {
            return asIndexHtml();
        }
    
        /**
         * Changes the user password.
         *
         * @param form the profile form
         * @return the HTML response
         */
        @Execute
        public HtmlResponse changePassword(final ProfileForm form) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 06:18:24 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  9. docs/uk/docs/tutorial/middleware.md

    ///
    
    ### До і після `response` { #before-and-after-the-response }
    
    Ви можете додати код, який буде виконуватися з `request`, до того, як його отримає будь-яка *операція шляху*.
    
    Також ви можете додати код, який буде виконуватися після того, як `response` буде згенеровано, перед тим як її повернути.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:27:41 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  10. samples/guide/src/main/java/okhttp3/recipes/CancelCall.java

        }, 1, TimeUnit.SECONDS);
    
        System.out.printf("%.2f Executing call.%n", (System.nanoTime() - startNanos) / 1e9f);
        try (Response response = call.execute()) {
          System.out.printf("%.2f Call was expected to fail, but completed: %s%n",
              (System.nanoTime() - startNanos) / 1e9f, response);
        } catch (IOException e) {
          System.out.printf("%.2f Call failed as expected: %s%n",
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Jan 12 03:31:36 GMT 2019
    - 2.1K bytes
    - Click Count (0)
Back to Top