Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for headerNames (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest/requestheader.go

    }
    
    func headerValue(h http.Header, headerNames []string) string {
    	for _, headerName := range headerNames {
    		headerValue := h.Get(headerName)
    		if len(headerValue) > 0 {
    			return headerValue
    		}
    	}
    	return ""
    }
    
    func allHeaderValues(h http.Header, headerNames []string) []string {
    	ret := []string{}
    	for _, headerName := range headerNames {
    		headerKey := http.CanonicalHeaderKey(headerName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:19:54 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/server/options/authentication.go

    	}
    
    	return allErrors
    }
    
    func checkForWhiteSpaceOnly(flag string, headerNames ...string) error {
    	for _, headerName := range headerNames {
    		if len(strings.TrimSpace(headerName)) == 0 {
    			return fmt.Errorf("empty value in %q", flag)
    		}
    	}
    
    	return nil
    }
    
    func caseInsensitiveHas(headers []string, header string) bool {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 21 14:51:22 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  3. pkg/jwt/routing.go

    	Square
    )
    
    type RoutingClaim struct {
    	Match     bool
    	Separator Separator
    	Claims    []string
    }
    
    func ToRoutingClaim(headerName string) RoutingClaim {
    	rc := RoutingClaim{}
    	if !strings.HasPrefix(strings.ToLower(headerName), HeaderJWTClaim) {
    		return rc
    	}
    
    	name := headerName[len(HeaderJWTClaim):]
    	if strings.HasPrefix(name, ".") && len(name) > 1 {
    		// using `.` as a separator
    		rc.Match = true
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 16:38:57 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/LoggingHandler.groovy

            Map<String, String> entries = request.getHeaderNames().toList().collectEntries { headerName -> [headerName, request.getHeader(headerName as String)] }
            allHeaders.add(entries)
            String authorization = getAuthorizationHeader(request)
            if (authorization != null) {
                synchronized (authenticationAttempts) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/endpoints/filters/impersonation.go

    		req.Header.Del(authenticationv1.ImpersonateGroupHeader)
    		req.Header.Del(authenticationv1.ImpersonateUIDHeader)
    		for headerName := range req.Header {
    			if strings.HasPrefix(headerName, authenticationv1.ImpersonateUserExtraHeaderPrefix) {
    				req.Header.Del(headerName)
    			}
    		}
    
    		handler.ServeHTTP(w, req)
    	})
    }
    
    func userString(u user.Info) string {
    	if u == nil {
    		return "<none>"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 07 10:10:35 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  6. cmd/object-api-options.go

    func parseIntHeader(bucket, object string, h http.Header, headerName string) (value int, err error) {
    	stringInt := strings.TrimSpace(h.Get(headerName))
    	if stringInt == "" {
    		return
    	}
    	value, err = strconv.Atoi(stringInt)
    	if err != nil {
    		return 0, InvalidArgument{
    			Bucket: bucket,
    			Object: object,
    			Err:    fmt.Errorf("Unable to parse %s, value should be an integer", headerName),
    		}
    	}
    	return
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 06:56:12 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  7. maven-core/src/test/java/org/apache/maven/internal/aether/DefaultRepositorySystemSessionFactoryTest.java

            Xpp3Dom httpHeaders = new Xpp3Dom("httpHeaders");
            Xpp3Dom property = new Xpp3Dom("property");
            Xpp3Dom headerName = new Xpp3Dom("name");
            headerName.setValue("header");
            Xpp3Dom headerValue = new Xpp3Dom("value");
            headerValue.setValue("value");
            property.addChild(headerName);
            property.addChild(headerValue);
            httpHeaders.addChild(property);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Mar 27 14:46:12 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/es/config/exentity/DataConfig.java

            int count = 1;
            String headerName = paramMap.get(CRAWLER_WEB_HEADER_PREFIX + count + ".name");
            while (StringUtil.isNotBlank(headerName)) {
                final String headerValue = paramMap.get(CRAWLER_WEB_HEADER_PREFIX + count + ".value");
                rhList.add(new org.codelibs.fess.crawler.client.http.RequestHeader(headerName, headerValue));
                count++;
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu May 09 09:48:04 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt

     *
     * ```
     * WWW-Authenticate: Digest ,foo=bar
     * WWW-Authenticate: Digest ,foo
     * ```
     */
    fun Headers.parseChallenges(headerName: String): List<Challenge> {
      val result = mutableListOf<Challenge>()
      for (h in 0 until size) {
        if (headerName.equals(name(h), ignoreCase = true)) {
          val header = Buffer().writeUtf8(value(h))
          try {
            header.readChallengeHeader(result)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  10. pilot/pkg/security/authn/policy_applier_test.go

    												InlineString: test.JwtPubKey1,
    											},
    										},
    									},
    									Forward: true,
    									ClaimToHeaders: []*envoy_jwt.JwtClaimToHeader{
    										{HeaderName: "x-jwt-key1", ClaimName: "value1"},
    										{HeaderName: "x-jwt-key2", ClaimName: "value2"},
    									},
    									PayloadInMetadata: "https://secret.foo.com",
    								},
    							},
    							BypassCorsPreflight: true,
    						}),
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 01 07:32:22 UTC 2023
    - 60.2K bytes
    - Viewed (0)
Back to top