Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 2,360 for takes (0.11 sec)

  1. docs/en/docs/advanced/custom-response.md

    ```
    
    ### `HTMLResponse`
    
    Takes some text or bytes and returns an HTML response, as you read above.
    
    ### `PlainTextResponse`
    
    Takes some text or bytes and returns an plain text response.
    
    ```Python hl_lines="2  7  9"
    {!../../../docs_src/custom_response/tutorial005.py!}
    ```
    
    ### `JSONResponse`
    
    Takes some data and returns an `application/json` encoded response.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. docs/en/docs/reference/dependencies.md

    # Dependencies - `Depends()` and `Security()`
    
    ## `Depends()`
    
    Dependencies are handled mainly with the special function `Depends()` that takes a callable.
    
    Here is the reference for it and its parameters.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Depends
    ```
    
    ::: fastapi.Depends
    
    ## `Security()`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 671 bytes
    - Viewed (0)
  3. tests/integration/pilot/proxyconfig/proxyconfig_test.go

    						"B": "2",
    					},
    				},
    				{
    					"global takes precedence over default config",
    					"",
    					"",
    					[]proxyConfigInstance{
    						newProxyConfig("global", "istio-system", nil, map[string]string{
    							"A": "3",
    						}),
    					},
    					map[string]string{
    						"A": "3",
    						"B": "2",
    					},
    				},
    				{
    					"pod annotation takes precedence over namespace",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. platforms/jvm/language-groovy/src/main/java/org/gradle/api/tasks/compile/GroovyCompileOptions.java

         * Returns the list of acceptable source file extensions. Only takes effect when compiling against
         * Groovy 1.7 or higher. Defaults to {@code ImmutableList.of("java", "groovy")}.
         */
        @Input
        public List<String> getFileExtensions() {
            return fileExtensions;
        }
    
        /**
         * Sets the list of acceptable source file extensions. Only takes effect when compiling against
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  5. docs/en/docs/reference/request.md

    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Request
    ```
    
    !!! tip
        When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an `HTTPConnection` instead of a `Request` or a `WebSocket`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 516 bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/index.md

    And that function takes parameters in the same way that *path operation functions* do.
    
    !!! tip
        You'll see what other "things", apart from functions, can be used as dependencies in the next chapter.
    
    Whenever a new request arrives, **FastAPI** will take care of:
    
    * Calling your dependency ("dependable") function with the correct parameters.
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TopKSelector.java

          if (iterations >= maxIterations) {
            @SuppressWarnings("nullness") // safe because we pass sort() a range that contains real Ts
            T[] castBuffer = (T[]) buffer;
            // We've already taken O(k log k), let's make sure we don't take longer than O(k log k).
            Arrays.sort(castBuffer, left, right + 1, comparator);
            break;
          }
        }
        bufferSize = k;
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  8. src/net/error_posix.go

    // license that can be found in the LICENSE file.
    
    //go:build unix || js || wasip1 || windows
    
    package net
    
    import (
    	"os"
    	"syscall"
    )
    
    // wrapSyscallError takes an error and a syscall name. If the error is
    // a syscall.Errno, it wraps it in an os.SyscallError using the syscall name.
    func wrapSyscallError(name string, err error) error {
    	if _, ok := err.(syscall.Errno); ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:20:52 UTC 2023
    - 543 bytes
    - Viewed (0)
  9. pkg/config/mesh/watcher.go

    // mesh config, but takes precedence.
    func (w *internalWatcher) HandleMeshConfigData(yaml string) {
    	w.mutex.Lock()
    	defer w.mutex.Unlock()
    	w.revMeshConfig = yaml
    	merged := w.merged()
    	w.handleMeshConfigInternal(merged)
    }
    
    // HandleUserMeshConfig keeps track of user mesh config overrides. These are merged with the standard
    // mesh config, which takes precedence.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Dec 20 18:33:38 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  10. pkg/kubelet/metrics/metrics.go

    			Buckets:        metrics.ExponentialBuckets(1, 2, 5),
    			StabilityLevel: metrics.ALPHA,
    		},
    	)
    	// PodWorkerDuration is a Histogram that tracks the duration (in seconds) in takes to sync a single pod.
    	// Broken down by the operation type.
    	PodWorkerDuration = metrics.NewHistogramVec(
    		&metrics.HistogramOpts{
    			Subsystem:      KubeletSubsystem,
    			Name:           PodWorkerDurationKey,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 22 15:13:25 UTC 2024
    - 45.6K bytes
    - Viewed (0)
Back to top