Search Options

Results per page
Sort
Preferred Languages
Advance

Results 191 - 200 of 997 for examples (0.12 sec)

  1. samples/guide/src/main/java/okhttp3/guide/GetExample.java

        try (Response response = client.newCall(request).execute()) {
          return response.body().string();
        }
      }
    
      public static void main(String[] args) throws IOException {
        GetExample example = new GetExample();
        String response = example.run("https://raw.github.com/square/okhttp/master/README.md");
        System.out.println(response);
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Throwables.java

     * @author Ben Yu
     * @since 1.0
     */
    @GwtCompatible
    public final class Throwables {
      private Throwables() {}
    
      /**
       * Throws {@code throwable} if it is an instance of {@code declaredType}. Example usage:
       *
       * <pre>
       * for (Foo foo : foos) {
       *   try {
       *     foo.bar();
       *   } catch (BarException | RuntimeException | Error t) {
       *     failure = t;
       *   }
       * }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. android/guava/src/com/google/common/util/concurrent/ParametricNullness.java

    import java.lang.annotation.Retention;
    import java.lang.annotation.Target;
    
    /**
     * Annotates a "top-level" type-variable usage that takes its nullness from the type argument
     * supplied by the user of the class. For example, {@code Multiset.Entry.getElement()} returns
     * {@code @ParametricNullness E}, which means:
     *
     * <ul>
     *   <li>{@code getElement} on a {@code Multiset.Entry<@NonNull String>} returns {@code @NonNull
     *       String}.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 16:20:21 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  10. 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)
Back to top