EvalName returns the generic definition name used in error messages.
()
| 29 | |
| 30 | // EvalName returns the generic definition name used in error messages. |
| 31 | func (f *HTTPFileServerExpr) EvalName() string { |
| 32 | suffix := fmt.Sprintf("file server %s", f.FilePath) |
| 33 | var prefix string |
| 34 | if f.Service != nil { |
| 35 | prefix = f.Service.EvalName() + " " |
| 36 | } |
| 37 | return prefix + suffix |
| 38 | } |
| 39 | |
| 40 | // Finalize normalizes the request path. |
| 41 | func (f *HTTPFileServerExpr) Finalize() { |