Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 22 of 22 for Single (0.41 sec)

  1. docs/en/docs/release-notes.md

    Now, instead of using independent `startup` and `shutdown` events, you can define that logic in a single function with `yield` decorated with `@asynccontextmanager` (an async context manager).
    
    For example:
    
    ```Python
    from contextlib import asynccontextmanager
    
    from fastapi import FastAPI
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Jun 14 15:07:37 UTC 2024
    - 395.4K bytes
    - Viewed (0)
  2. pkg/proxy/iptables/proxier_test.go

    		{
    			name:     "no match",
    			sourceIP: "10.0.0.2",
    			destIP:   "10.0.0.3",
    			destPort: 80,
    			output:   "",
    		},
    		{
    			name:     "single endpoint",
    			sourceIP: "10.0.0.2",
    			destIP:   "172.30.0.41",
    			destPort: 80,
    			output:   "10.180.0.1:80",
    		},
    		{
    			name:     "multiple endpoints",
    			sourceIP: "10.0.0.2",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 14:39:54 UTC 2024
    - 249.9K bytes
    - Viewed (0)
Back to top