Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 1,129 for examples (0.13 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/HttpUrl.kt

        }
    
      /**
       * Returns a string with containing this URL with its username, password, query, and fragment
       * stripped, and its path replaced with `/...`. For example, redacting
       * `http://username:password@example.com/path` returns `http://example.com/...`.
       */
      fun redact(): String =
        newBuilder("/...")!!
          .username("")
          .password("")
          .build()
          .toString()
    
      /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 63.5K bytes
    - Viewed (0)
  2. docs/em/docs/tutorial/security/first-steps.md

    /// tip
    
    πŸ“₯ `tokenUrl="token"` πŸ”— βš– πŸ“› `token` πŸ‘ˆ πŸ‘₯ 🚫 ✍. ⚫️ βš– πŸ“›, ⚫️ πŸŒ“ `./token`.
    
    ↩️ πŸ‘₯ βš™οΈ βš– πŸ“›, πŸš₯ πŸ‘† πŸ› οΈ πŸ”Ž `https://example.com/`, ‴️ ⚫️ πŸ”œ πŸ”— `https://example.com/token`. βœ‹οΈ πŸš₯ πŸ‘† πŸ› οΈ πŸ”Ž `https://example.com/api/v1/`, ‴️ ⚫️ πŸ”œ πŸ”— `https://example.com/api/v1/token`.
    
    βš™οΈ βš– πŸ“› ⚠ βš’ πŸ’­ πŸ‘† 🈸 🚧 πŸ‘· 🏧 βš™οΈ πŸ’Ό πŸ’– [β›… πŸ—³](../../advanced/behind-a-proxy.md){.internal-link target=_blank}.
    
    ///
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. docs/em/docs/tutorial/cors.md

    πŸ“„ ❌ πŸ•β€πŸ¦Ί:
    
    * `allow_origins` - πŸ“‡ πŸ‡¨πŸ‡³ πŸ‘ˆ πŸ”œ βœ” βš’ βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. 🀢 β“‚. `['https://example.org', 'https://www.example.org']`. πŸ‘† πŸ’ͺ βš™οΈ `['*']` βœ” πŸ™† πŸ‡¨πŸ‡³.
    * `allow_origin_regex` - 🎻 🎻 🏏 πŸ›‘ πŸ‡¨πŸ‡³ πŸ‘ˆ πŸ”œ βœ” βš’ βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. βœ… `'https://.*\.example\.org'`.
    * `allow_methods` - πŸ“‡ πŸ‡ΊπŸ‡ΈπŸ” πŸ‘©β€πŸ”¬ πŸ‘ˆ πŸ”œ βœ” βœ–οΈ-πŸ‡¨πŸ‡³ πŸ“¨. πŸ”’ `['GET']`. πŸ‘† πŸ’ͺ βš™οΈ `['*']` βœ” 🌐 🐩 πŸ‘©β€πŸ”¬.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-status-code.md

    * **`200 - 299`** are for "Successful" responses. These are the ones you would use the most.
        * `200` is the default status code, which means everything was "OK".
        * Another example would be `201`, "Created". It is commonly used after creating a new record in the database.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

    would be valid to use as a **FastAPI** dependency.
    
    In fact, FastAPI uses those two decorators internally.
    
    ///
    
    ## A database dependency with `yield` { #a-database-dependency-with-yield }
    
    For example, you could use this to create a database session and close it after finishing.
    
    Only the code prior to and including the `yield` statement is executed before creating a response:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. docs/sts/dex.md

    time="2020-07-12T20:45:50Z" level=info msg="config issuer: http://127.0.0.1:5556/dex"
    time="2020-07-12T20:45:50Z" level=info msg="config storage: sqlite3"
    time="2020-07-12T20:45:50Z" level=info msg="config static client: Example App"
    time="2020-07-12T20:45:50Z" level=info msg="config connector: mock"
    time="2020-07-12T20:45:50Z" level=info msg="config connector: local passwords enabled"
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Aug 12 18:20:36 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

           *
           * Example:
           * ```
           * --> POST /greeting http/1.1 (3-byte body)
           *
           * <-- 200 OK (22ms, 6-byte body)
           * ```
           */
          BASIC,
    
          /**
           * Logs request and response lines and their respective headers.
           *
           * Example:
           * ```
           * --> POST /greeting http/1.1
           * Host: example.com
           * Content-Type: plain/text
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 21 14:27:04 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/request-files.md

    As all these methods are `async` methods, you need to "await" them.
    
    For example, inside of an `async` *path operation function* you can get the contents with:
    
    ```Python
    contents = await myfile.read()
    ```
    
    If you are inside of a normal `def` *path operation function*, you can access the `UploadFile.file` directly, for example:
    
    ```Python
    contents = myfile.file.read()
    ```
    
    /// note | `async` Technical Details
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  9. docs/en/docs/advanced/additional-responses.md

    **FastAPI** will keep the additional information from `responses`, and combine it with the JSON Schema from your model.
    
    For example, you can declare a response with a status code `404` that uses a Pydantic model and has a custom `description`.
    
    And a response with a status code `200` that uses your `response_model`, but includes a custom `example`:
    
    {* ../../docs_src/additional_responses/tutorial003.py hl[20:31] *}
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/query-params.md

    For example, in the URL:
    
    ```
    http://127.0.0.1:8000/items/?skip=0&limit=10
    ```
    
    ...the query parameters are:
    
    * `skip`: with a value of `0`
    * `limit`: with a value of `10`
    
    As they are part of the URL, they are "naturally" strings.
    
    But when you declare them with Python types (in the example above, as `int`), they are converted to that type and validated against it.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 10:29:01 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top