Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 128 for Hawaii (0.14 sec)

  1. docs_src/async_tests/test_main.py

    import pytest
    from httpx import AsyncClient
    
    from .main import app
    
    
    @pytest.mark.anyio
    async def test_root():
        async with AsyncClient(app=app, base_url="http://test") as ac:
            response = await ac.get("/")
        assert response.status_code == 200
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Oct 06 15:32:11 GMT 2021
    - 306 bytes
    - Viewed (0)
  2. .github/workflows/label-approved.yml

          with:
            token: ${{ secrets.FASTAPI_LABEL_APPROVED }}
            config: >
              {
                "approved-1":
                  {
                    "number": 1,
                    "await_label": "awaiting-review"
                  }
    Others
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Mon Jan 22 18:43:10 GMT 2024
    - 610 bytes
    - Viewed (0)
  3. fastapi/exception_handlers.py

            content={"detail": jsonable_encoder(exc.errors())},
        )
    
    
    async def websocket_request_validation_exception_handler(
        websocket: WebSocket, exc: WebSocketRequestValidationError
    ) -> None:
        await websocket.close(
            code=WS_1008_POLICY_VIOLATION, reason=jsonable_encoder(exc.errors())
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sun Jun 11 19:08:14 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  4. docs_src/path_operation_advanced_configuration/tutorial007_pv1.py

            "requestBody": {
                "content": {"application/x-yaml": {"schema": Item.schema()}},
                "required": True,
            },
        },
    )
    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.parse_obj(data)
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Fri Jul 07 17:12:13 GMT 2023
    - 789 bytes
    - Viewed (0)
  5. .github/workflows/issue-on-pr-rollback.yml

            with:
              github-token: ${{secrets.GITHUB_TOKEN}}
              script: |
                const script = require('./.github/workflows/create_issue.js')
    Others
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Tue Sep 12 16:40:29 GMT 2023
    - 1.5K bytes
    - Viewed (0)
  6. docs/en/docs/advanced/websockets.md

        **FastAPI** provides the same `WebSocket` directly just as a convenience for you, the developer. But it comes directly from Starlette.
    
    ## Await for messages and send messages
    
    In your WebSocket route you can `await` for messages and send messages.
    
    ```Python hl_lines="48-52"
    {!../../../docs_src/websockets/tutorial001.py!}
    ```
    
    You can receive and send binary, text, and JSON data.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

          queue.enqueue(incrementingEvent(counters, listener, 4));
          queue.enqueue(countDownEvent(latch));
          assertEquals(0, counters.size());
          queue.dispatch();
          latch.await();
          assertEquals(multiset(listener, 4), counters);
        } finally {
          service.shutdown();
        }
      }
    
      public void testEnqueueAndDispatch_multithreaded_withThrowingRunnable()
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/util/concurrent/ListenerCallQueueTest.java

          queue.enqueue(incrementingEvent(counters, listener, 4));
          queue.enqueue(countDownEvent(latch));
          assertEquals(0, counters.size());
          queue.dispatch();
          latch.await();
          assertEquals(multiset(listener, 4), counters);
        } finally {
          service.shutdown();
        }
      }
    
      public void testEnqueueAndDispatch_multithreaded_withThrowingRunnable()
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  9. docs/em/docs/advanced/async-tests.md

    โคด๏ธ ๐Ÿ‘ฅ ๐Ÿ’ช โœ `AsyncClient` โฎ๏ธ ๐Ÿ“ฑ, & ๐Ÿ“จ ๐Ÿ” ๐Ÿ“จ โšซ๏ธ, โš™๏ธ `await`.
    
    ```Python hl_lines="9-10"
    {!../../../docs_src/async_tests/test_main.py!}
    ```
    
    ๐Ÿ‘‰ ๐ŸŒ“:
    
    ```Python
    response = client.get('/')
    ```
    
    ...๐Ÿ‘ˆ ๐Ÿ‘ฅ โš™๏ธ โš’ ๐Ÿ‘† ๐Ÿ“จ โฎ๏ธ `TestClient`.
    
    !!! tip
        ๐Ÿ—’ ๐Ÿ‘ˆ ๐Ÿ‘ฅ โš™๏ธ ๐Ÿ”/โŒ› โฎ๏ธ ๐Ÿ†• `AsyncClient` - ๐Ÿ“จ ๐Ÿ”.
    
    ## ๐ŸŽ ๐Ÿ” ๐Ÿ”ข ๐Ÿค™
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Apr 01 09:26:04 GMT 2023
    - 3K bytes
    - Viewed (0)
  10. cmd/metrics-v3-system-drive.go

    	driveCount        = "count"
    
    	// iostat related
    	driveReadsPerSec    = "reads_per_sec"
    	driveReadsKBPerSec  = "reads_kb_per_sec"
    	driveReadsAwait     = "reads_await"
    	driveWritesPerSec   = "writes_per_sec"
    	driveWritesKBPerSec = "writes_kb_per_sec"
    	driveWritesAwait    = "writes_await"
    	drivePercUtil       = "perc_util"
    )
    
    var (
    	driveUsedBytesMD = NewGaugeMD(driveUsedBytes,
    		"Total storage used on a drive in bytes", allDriveLabels...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 7.8K bytes
    - Viewed (0)
Back to top