const class fanr::WebRepoMod
sys::Obj web::WebMod fanr::WebRepoMod
WebRepoMod implements basic server side functionality for publishing a repo over HTTP to be used by WebRepo. URI namespace:
Method Uri Operation
------ -------------------- ---------
GET {base}/ping ping meta-data
GET {base}/find/{name} pod find current
GET {base}/find/{name}/{ver} pod find
GET {base}/query?{query} pod query
POST {base}/query pod query
GET {base}/pod/{name}/{ver} pod download
POST {base}/publish publish pod
GET {base}/auth?{username} authentication info
See Web Repos.
- auth
-
const WebRepoAuth auth := PublicWebRepoAuth.<ctor>()Authentication and authorization plug-in. Default is to make everything completely public.
- make
-
new make(|This|? f := null)Constructor, must set
repo. - onService
-
virtual override Void onService()Service
- pingMeta
-
Meta-data to include in ping requests. If customized, then be sure to include standard props defined by
Repo.ping. - repo
-
const Repo repoRepository to publish on the web, typically a local FileRepo.
- tempDir
-
const File tempDir := Env.cur().tempDirDir to store temp files, defaults to
Env.tempDir