MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / put

Function put

src/net/mod.rs:228–230  ·  view source on GitHub ↗

Fire a PUT request. Idempotent: won't re-fire if a request with this ID exists.

(id: &str, url: &str, f: impl FnOnce(&mut HttpConfig) -> &mut HttpConfig)

Source from the content-addressed store, hash-verified

226
227/// Fire a PUT request. Idempotent: won't re-fire if a request with this ID exists.
228pub fn put(id: &str, url: &str, f: impl FnOnce(&mut HttpConfig) -> &mut HttpConfig) {
229 fire_http("PUT", id, url, f);
230}
231
232/// Fire a DELETE request. Idempotent: won't re-fire if a request with this ID exists.
233pub fn delete(id: &str, url: &str, f: impl FnOnce(&mut HttpConfig) -> &mut HttpConfig) {

Callers

nothing calls this directly

Calls 1

fire_httpFunction · 0.85

Tested by

no test coverage detected