Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 1,338 for Example (0.06 sec)

  1. guava-testlib/src/com/google/common/testing/TestLogHandler.java

    import java.util.logging.Handler;
    import java.util.logging.LogRecord;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tests may use this to intercept messages that are logged by the code under test. Example:
     *
     * <pre>
     *   TestLogHandler handler;
     *
     *   protected void setUp() throws Exception {
     *     super.setUp();
     *     handler = new TestLogHandler();
     *     SomeClass.logger.addHandler(handler);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 21 20:53:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_generate_clients/test_tutorial003.py

        assert response.json() == {"message": "Item received"}
    
    
    def test_post_users():
        response = client.post(
            "/users/", json={"username": "Foo", "email": "foo@example.com"}
        )
        assert response.status_code == 200, response.text
        assert response.json() == {"message": "User received"}
    
    
    def test_get_items():
        response = client.get("/items/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  3. docs/en/docs/alternatives.md

    That's why, as said in the official website:
    
    > Requests is one of the most downloaded Python packages of all time
    
    The way you use it is very simple. For example, to do a `GET` request, you would write:
    
    ```Python
    response = requests.get("http://example.com/some/url")
    ```
    
    The FastAPI counterpart API *path operation* could look like:
    
    ```Python hl_lines="1"
    @app.get("/some/url")
    def read_url():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 20 19:20:23 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  4. README.md

    ```console
    $ pip install "fastapi[standard]"
    
    ---> 100%
    ```
    
    </div>
    
    **Note**: Make sure you put `"fastapi[standard]"` in quotes to ensure it works in all terminals.
    
    ## Example
    
    ### Create it
    
    * Create a file `main.py` with:
    
    ```Python
    from typing import Union
    
    from fastapi import FastAPI
    
    app = FastAPI()
    
    
    @app.get("/")
    def read_root():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Oct 31 09:13:26 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        }
      }
    }
    
    fun main() {
      // Call this before anything else initialises the JSSE stack.
      WireSharkListenerFactory.register()
    
      val example = WiresharkExample(tlsVersions = listOf(TLS_1_2), launch = CommandLine)
      example.run()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. docs/ru/docs/tutorial/handling-errors.md

    {!../../docs_src/handling_errors/tutorial001.py!}
    ```
    
    ### Возвращаемый ответ
    
    Если клиент запросит `http://example.com/items/foo` (`item_id` `"foo"`), то он получит статус-код 200 и ответ в формате JSON:
    
    ```JSON
    {
      "item": "The Foo Wrestlers"
    }
    ```
    
    Но если клиент запросит `http://example.com/items/bar` (несуществующий `item_id` `"bar"`), то он получит статус-код 404 (ошибка "не найдено") и JSON-ответ в виде:
    
    ```JSON
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. docs/multi-user/README.md

    - `jwt:profile`
    - `jwt:picture`
    - `jwt:website`
    - `jwt:email`
    - `jwt:gender`
    - `jwt:birthdate`
    - `jwt:phone_number`
    - `jwt:address`
    - `jwt:scope`
    - `jwt:client_id`
    
    Following example shows OpenID users with full programmatic access to a OpenID user-specific directory (their own "home directory") in MinIO.
    
    ```
    {
      "Version": "2012-10-17",
      "Statement": [
    	{
    	  "Action": ["s3:ListBucket"],
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 21 06:38:06 UTC 2023
    - 8K bytes
    - Viewed (0)
  8. docs/sts/ldap.md

    For example:
    ```shell
    group_search_filter: (&(objectClass=group)(member:1.2.840.113556.1.4.1941:=%d))
    user_dn_search_filter: (&(memberOf:1.2.840.113556.1.4.1941:=CN=group,DC=dc,DC=net)(sAMAccountName=%s))
    ```
    
    ### Sample settings
    
    Here are some (minimal) sample settings for development or experimentation:
    
    ```shell
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  9. helm-releases/minio-3.6.5.tgz

    writeexamplepolicy policy grants creation or deletion of buckets with name ## starting with example. In addition, grants objects write permissions on buckets starting with ## example. # - name: writeexamplepolicy # statements: # - resources: # - 'arn:aws:s3:::example*/*' # actions: # - "s3:AbortMultipartUpload" # - "s3:GetObject" # - "s3:DeleteObject" # - "s3:PutObject" # - "s3:ListMultipartUploadP" # - resources: # - 'arn:aws:s3:::example*' # actions: # - "s3:CreateBucket" # - "s3:DeleteBucket" # - "s3:GetBucketLocation"...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Apr 13 22:45:54 UTC 2022
    - 18K bytes
    - Viewed (0)
  10. helm-releases/minio-4.0.1.tgz

    writeexamplepolicy policy grants creation or deletion of buckets with name ## starting with example. In addition, grants objects write permissions on buckets starting with ## example. # - name: writeexamplepolicy # statements: # - resources: # - 'arn:aws:s3:::example*/*' # actions: # - "s3:AbortMultipartUpload" # - "s3:GetObject" # - "s3:DeleteObject" # - "s3:PutObject" # - "s3:ListMultipartUploadP" # - resources: # - 'arn:aws:s3:::example*' # actions: # - "s3:CreateBucket" # - "s3:DeleteBucket" # - "s3:GetBucketLocation"...
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon May 02 06:10:34 UTC 2022
    - 18K bytes
    - Viewed (0)
Back to top