URI defines a server host URI. A single host may define multiple URIs. The supported schemes are 'http', 'https', 'grpc' and 'grpcs' where 'grpcs' indicates gRPC using client-side SSL/TLS. gRPC URIs may only define the authority component (in particular no path). URIs may be parameterized using the
(uri string)
| 154 | // }) |
| 155 | // }) |
| 156 | func URI(uri string) { |
| 157 | h, ok := eval.Current().(*expr.HostExpr) |
| 158 | if !ok { |
| 159 | eval.IncompatibleDSL() |
| 160 | return |
| 161 | } |
| 162 | h.URIs = append(h.URIs, expr.URIExpr(uri)) |
| 163 | } |
| 164 | |
| 165 | // Variable defines a server host URI variable. |
| 166 | // |