MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / begin_mod_upload

Method begin_mod_upload

mserver/MasterService/src/service.rs:131–136  ·  view source on GitHub ↗

Begin a streamed mod upload (`None` if mods are disabled). The handler writes the uploaded body to it chunk-by-chunk, then calls `finalize_mod_upload`.

(&self)

Source from the content-addressed store, hash-verified

129 Some(store) => store.get_mod(mod_id).await,
130 None => Ok(None),
131 }
132 }
133
134 pub const fn mods_enabled(&self) -> bool {
135 self.mod_store.is_some()
136 }
137
138 /// Begin a streamed mod upload (`None` if mods are disabled). The handler writes the
139 /// uploaded body to it chunk-by-chunk, then calls `finalize_mod_upload`.

Callers 1

publish_modFunction · 0.80

Calls 1

begin_uploadMethod · 0.80

Tested by

no test coverage detected