MCPcopy Create free account
hub / github.com/goadesign/goa / HTTPFileServerExpr

Struct HTTPFileServerExpr

expr/http_file_server.go:12–27  ·  view source on GitHub ↗

HTTPFileServerExpr defines an endpoint that serves static assets through HTTP.

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected