Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for xdsgrpc (0.17 sec)

  1. pkg/config/protocol/instance.go

    }
    
    // IsHTTPS is true if protocol is HTTPS
    func (i Instance) IsHTTPS() bool {
    	switch i {
    	case HTTPS:
    		return true
    	default:
    		return false
    	}
    }
    
    // IsGRPC is true for GRPC protocols.
    func (i Instance) IsGRPC() bool {
    	switch i {
    	case GRPC, GRPCWeb:
    		return true
    	default:
    		return false
    	}
    }
    
    func (i Instance) IsUnsupported() bool {
    	return i == Unsupported
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Aug 01 02:46:15 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. pkg/test/framework/components/authz/provider.go

    		}))
    
    	return checkRequest(opts, expectAllowed, checkHeaders)
    }
    
    func checkRequest(opts echo.CallOptions, expectAllowed bool, checkHeaders echo.Checker) echo.Checker {
    	switch {
    	case opts.Port.Protocol.IsGRPC():
    		switch opts.HTTP.Headers.Get(XExtAuthz) {
    		case XExtAuthzAllow:
    			return check.And(check.NoError(), checkHeaders)
    		default:
    			// Deny
    			return check.And(check.Forbidden(protocol.GRPC),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 23 16:02:21 UTC 2022
    - 5.9K bytes
    - Viewed (0)
Back to top