grpc: better RFC 3986 compliant target parsing (#4817)

This commit is contained in:
Easwar Swaminathan
2021-10-14 14:54:02 -07:00
committed by GitHub
parent 45097a8aa6
commit aaff9e7ab9
13 changed files with 314 additions and 244 deletions

View File

@ -482,8 +482,7 @@ func WithChainStreamInterceptor(interceptors ...StreamClientInterceptor) DialOpt
}
// WithAuthority returns a DialOption that specifies the value to be used as the
// :authority pseudo-header. This value only works with WithInsecure and has no
// effect if TransportCredentials are present.
// :authority pseudo-header and as the server name in authentication handshake.
func WithAuthority(a string) DialOption {
return newFuncDialOption(func(o *dialOptions) {
o.authority = a