Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for QueryParams (0.76 sec)

  1. cmd/signature-v4_test.go

    	testCases := []struct {
    		queryParams map[string]string
    		headers     map[string]string
    		region      string
    		expected    APIErrorCode
    	}{
    		// (0) Should error without a set URL query.
    		{
    			region:   globalMinioDefaultRegion,
    			expected: ErrInvalidQueryParams,
    		},
    		// (1) Should error on an invalid access key.
    		{
    			queryParams: map[string]string{
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  2. pkg/config/validation/virtualservice_test.go

    				},
    			}},
    		}, valid: true},
    		{
    			name: "prefix queryParams match", route: &networking.HTTPRoute{
    				Delegate: &networking.Delegate{
    					Name:      "test",
    					Namespace: "test",
    				},
    				Match: []*networking.HTTPMatchRequest{{
    					QueryParams: map[string]*networking.StringMatch{
    						"q": {
    							MatchType: &networking.StringMatch_Prefix{Prefix: "test"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 15:33:55 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  3. fastapi/datastructures.py

    from starlette.datastructures import FormData as FormData  # noqa: F401
    from starlette.datastructures import Headers as Headers  # noqa: F401
    from starlette.datastructures import QueryParams as QueryParams  # noqa: F401
    from starlette.datastructures import State as State  # noqa: F401
    from starlette.datastructures import UploadFile as StarletteUploadFile
    from typing_extensions import Annotated, Doc
    
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. pilot/pkg/model/virtualservice.go

    	out.Headers = maps.MergeCopy(root.Headers, delegate.Headers)
    
    	// withoutheaders
    	out.WithoutHeaders = maps.MergeCopy(root.WithoutHeaders, delegate.WithoutHeaders)
    
    	// queryparams
    	out.QueryParams = maps.MergeCopy(root.QueryParams, delegate.QueryParams)
    
    	if out.Port == 0 {
    		out.Port = root.Port
    	}
    
    	// SourceLabels
    	out.SourceLabels = maps.MergeCopy(root.SourceLabels, delegate.SourceLabels)
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 11:17:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. pilot/pkg/config/kube/gateway/conversion_test.go

    				{
    					Match: []*istio.HTTPMatchRequest{
    						{
    							QueryParams: map[string]*istio.StringMatch{
    								"param1": {
    									MatchType: &istio.StringMatch_Exact{
    										Exact: "value1",
    									},
    								},
    							},
    						},
    					},
    				},
    				{
    					Match: []*istio.HTTPMatchRequest{
    						{
    							QueryParams: map[string]*istio.StringMatch{
    								"param1": {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 20:24:52 UTC 2024
    - 34.9K bytes
    - Viewed (0)
  6. fastapi/dependencies/utils.py

        required_params: Sequence[ModelField],
        received_params: Union[Mapping[str, Any], QueryParams, Headers],
    ) -> Tuple[Dict[str, Any], List[Any]]:
        values = {}
        errors = []
        for field in required_params:
            if is_scalar_sequence_field(field) and isinstance(
                received_params, (QueryParams, Headers)
            ):
                value = received_params.getlist(field.alias) or field.default
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 29.5K bytes
    - Viewed (0)
  7. pilot/pkg/model/virtualservice_test.go

    							},
    						},
    						{
    							Headers: map[string]*networking.StringMatch{
    								"version": {
    									MatchType: &networking.StringMatch_Exact{Exact: "v2"},
    								},
    							},
    							QueryParams: map[string]*networking.StringMatch{
    								"version": {
    									MatchType: &networking.StringMatch_Exact{Exact: "v2"},
    								},
    							},
    						},
    					},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
  8. pkg/config/validation/virtualservice.go

    			errs = appendErrors(errs, validateStringMatch(match.GetAuthority(), "authority"))
    			for _, qp := range match.GetQueryParams() {
    				errs = appendErrors(errs, validateStringMatch(qp, "queryParams"))
    			}
    		}
    	}
    
    	for _, match := range http.Match {
    		if match != nil {
    			if match.Port != 0 {
    				errs = appendErrors(errs, agent.ValidatePort(int(match.Port)))
    			}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  9. pilot/pkg/config/kube/gateway/conversion.go

    			// 3: number of header matches
    		case len(m1.Headers) != len(m2.Headers):
    			return len(m1.Headers) > len(m2.Headers)
    			// 4: number of query matches
    		default:
    			return len(m1.QueryParams) > len(m2.QueryParams)
    		}
    	})
    }
    
    // getURIRank ranks a URI match type. Exact > Prefix > Regex
    func getURIRank(match *istio.HTTPMatchRequest) int {
    	if match.Uri == nil {
    		return -1
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:37 UTC 2024
    - 84.7K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/route/route_test.go

    		Hosts:    []string{},
    		Gateways: []string{"some-gateway"},
    		Http: []*networking.HTTPRoute{
    			{
    				Match: []*networking.HTTPMatchRequest{
    					{
    						Name: "auth",
    						QueryParams: map[string]*networking.StringMatch{
    							"token": {
    								MatchType: &networking.StringMatch_Exact{
    									Exact: "foo",
    								},
    							},
    						},
    					},
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
Back to top