HTTPFileServerExpr defines an endpoint that serves static assets through HTTP.
| 10 | // HTTPFileServerExpr defines an endpoint that serves static assets |
| 11 | // through HTTP. |
| 12 | HTTPFileServerExpr struct { |
| 13 | // Service is the parent service. |
| 14 | Service *HTTPServiceExpr |
| 15 | // Description for docs |
| 16 | Description string |
| 17 | // Docs points to the service external documentation |
| 18 | Docs *DocsExpr |
| 19 | // FilePath is the file path to the static asset(s) |
| 20 | FilePath string |
| 21 | // RequestPaths is the list of HTTP paths that serve the assets. |
| 22 | RequestPaths []string |
| 23 | // Redirect defines a redirect for the endpoint. |
| 24 | Redirect *HTTPRedirectExpr |
| 25 | // Meta is a list of key/value pairs |
| 26 | Meta MetaExpr |
| 27 | } |
| 28 | ) |
| 29 | |
| 30 | // EvalName returns the generic definition name used in error messages. |
nothing calls this directly
no outgoing calls
no test coverage detected