Search Options

Results per page
Sort
Preferred Languages
Advance

Results 421 - 430 of 535 for broken (0.09 sec)

  1. docs/zh/docs/tutorial/bigger-applications.md

    我们将在主 `FastAPI` 应用中包含该 `APIRouter`,但首先,让我们来看看依赖项和另一个 `APIRouter`。
    
    ## 依赖项
    
    我们了解到我们将需要一些在应用程序的好几个地方所使用的依赖项。
    
    因此,我们将它们放在它们自己的 `dependencies` 模块(`app/dependencies.py`)中。
    
    现在我们将使用一个简单的依赖项来读取一个自定义的 `X-Token` 请求首部:
    
    ```Python hl_lines="1  4-6" title="app/dependencies.py"
    {!../../docs_src/bigger_applications/app/dependencies.py!}
    ```
    
    /// tip
    
    我们正在使用虚构的请求首部来简化此示例。
    
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  2. .github/actions/people/app/main.py

    def get_graphql_response(
        *,
        settings: Settings,
        query: str,
        after: Union[str, None] = None,
        category_id: Union[str, None] = None,
    ) -> Dict[str, Any]:
        headers = {"Authorization": f"token {settings.input_token.get_secret_value()}"}
        # category_id is only used by one query, but GraphQL allows unused variables, so
        # keep it here for simplicity
        variables = {"after": after, "category_id": category_id}
    Registered: Sun Oct 27 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:13:50 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. src/archive/tar/strconv.go

    func parsePAXRecord(s string) (k, v, r string, err error) {
    	// The size field ends at the first space.
    	nStr, rest, ok := strings.Cut(s, " ")
    	if !ok {
    		return "", "", s, ErrHeader
    	}
    
    	// Parse the first token as a decimal integer.
    	n, perr := strconv.ParseInt(nStr, 10, 0) // Intentionally parse as native int
    	if perr != nil || n < 5 || n > int64(len(s)) {
    		return "", "", s, ErrHeader
    	}
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Tue Aug 01 14:28:42 UTC 2023
    - 9K bytes
    - Viewed (0)
  4. api/go1.9.txt

    pkg encoding/base32, method (Encoding) WithPadding(int32) *Encoding
    pkg encoding/csv, type Reader struct, ReuseRecord bool
    pkg encoding/json, func Valid([]uint8) bool
    pkg go/ast, type TypeSpec struct, Assign token.Pos
    pkg go/types, func SizesFor(string, string) Sizes
    pkg go/types, method (*TypeName) IsAlias() bool
    pkg hash/fnv, func New128() hash.Hash
    pkg hash/fnv, func New128a() hash.Hash
    Registered: Tue Oct 29 11:13:09 UTC 2024
    - Last Modified: Mon Oct 04 20:20:20 UTC 2021
    - 10.7K bytes
    - Viewed (0)
  5. cmd/metacache-stream_test.go

    testdata/huffman-zero.wb.expect", "src/compress/flate/testdata/huffman-zero.wb.expect-noinput", "src/compress/flate/testdata/null-long-match.dyn.expect-noinput", "src/compress/flate/testdata/null-long-match.wb.expect-noinput", "src/compress/flate/token.go", "src/compress/flate/writer_test.go", "src/compress/gzip/", "src/compress/gzip/example_test.go", "src/compress/gzip/gunzip.go", "src/compress/gzip/gunzip_test.go", "src/compress/gzip/gzip.go", "src/compress/gzip/gzip_test.go", "src/compress/gz...
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  6. cmd/utils.go

    	oauth2Token, err := oauth2Config.Exchange(ctx, code)
    	if err != nil {
    		return "", fmt.Errorf("unable to exchange code for id token: %v", err)
    	}
    
    	rawIDToken, ok := oauth2Token.Extra("id_token").(string)
    	if !ok {
    		return "", fmt.Errorf("id_token not found!")
    	}
    
    	// fmt.Printf("TOKEN: %s\n", rawIDToken)
    	return rawIDToken, nil
    }
    
    // unwrapAll will unwrap the returned error completely.
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  7. cmd/iam.go

    				if err != nil {
    					continue
    				}
    				jwtClaims, err = auth.ExtractClaims(cred.SessionToken, secretKey)
    			}
    			if err != nil {
    				// skip this cred - session token seems invalid
    				continue
    			}
    
    			ldapUsername, okUserN := jwtClaims.Lookup(ldapUserN)
    			ldapActualDN, okDN := jwtClaims.Lookup(ldapActualUser)
    			if !okUserN || !okDN {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  8. cmd/object-api-listobjects_test.go

    						}
    					}
    
    					if testCase.resultL.IsTruncated != resultL.IsTruncated {
    						// Allow an extra continuation token.
    						if !resultL.IsTruncated || len(resultL.Objects) == 0 {
    							t.Errorf("Test %d: %s: Expected IsTruncated flag to be %v, but instead found it to be %v", i+1, instanceType, testCase.resultL.IsTruncated, resultL.IsTruncated)
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed May 01 11:07:40 UTC 2024
    - 73.1K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/mylasta/direction/FessConfig.java

        /** The key of the configuration. e.g. 60 */
        String API_ACCESS_TOKEN_LENGTH = "api.access.token.length";
    
        /** The key of the configuration. e.g. false */
        String API_ACCESS_TOKEN_REQUIRED = "api.access.token.required";
    
        /** The key of the configuration. e.g.  */
        String API_ACCESS_TOKEN_REQUEST_PARAMETER = "api.access.token.request.parameter";
    
        /** The key of the configuration. e.g. Radmin-api */
    Registered: Mon Oct 28 08:04:08 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 468.5K bytes
    - Viewed (0)
  10. cmd/common-main.go

    			if value := env.Get(config.EnvMinIOPrometheusExtraLabels, ""); value != "" {
    				os.Setenv("CONSOLE_PROMETHEUS_EXTRA_LABELS", value)
    			}
    		}
    		// Support Prometheus Auth Token
    		if value := env.Get(config.EnvMinIOPrometheusAuthToken, ""); value != "" {
    			os.Setenv("CONSOLE_PROMETHEUS_AUTH_TOKEN", value)
    		}
    	}
    	// Enable if LDAP is enabled.
    	if globalIAMSys.LDAPConfig.Enabled() {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
Back to top