Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for string_v1 (0.47 sec)

  1. pkg/config/validation/validation_test.go

    				Body: &networking.HTTPBody{
    					Specifier: &networking.HTTPBody_String_{String_: "hello"},
    				},
    			},
    			valid: true,
    		},
    		{
    			name: "with string body over 100kb",
    			directResponse: &networking.HTTPDirectResponse{
    				Status: 200,
    				Body: &networking.HTTPBody{
    					Specifier: &networking.HTTPBody_String_{String_: strings.Repeat("a", 101*kb)},
    				},
    			},
    			valid:   true,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 03:11:45 UTC 2024
    - 196K bytes
    - Viewed (0)
  2. pkg/config/validation/validation.go

    	if directResponse == nil {
    		return
    	}
    
    	if directResponse.Body != nil {
    		size := 0
    		switch op := directResponse.Body.Specifier.(type) {
    		case *networking.HTTPBody_String_:
    			size = len(op.String_)
    		case *networking.HTTPBody_Bytes:
    			size = len(op.Bytes)
    		}
    
    		if size > 1*mb {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
Back to top