hasHTTP returns true if the server expression has an HTTP server.
(root *expr.RootExpr, svr *expr.ServerExpr)
| 116 | |
| 117 | // hasHTTP returns true if the server expression has an HTTP server. |
| 118 | func hasHTTP(root *expr.RootExpr, svr *expr.ServerExpr) bool { |
| 119 | for _, s := range svr.Services { |
| 120 | if root.API.HTTP.Service(s) != nil { |
| 121 | return true |
| 122 | } |
| 123 | } |
| 124 | return false |
| 125 | } |
no test coverage detected