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

Function post

src/net/mod.rs:223–225  ·  view source on GitHub ↗

Fire a POST 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

221
222/// Fire a POST request. Idempotent: won't re-fire if a request with this ID exists.
223pub fn post(id: &str, url: &str, f: impl FnOnce(&mut HttpConfig) -> &mut HttpConfig) {
224 fire_http("POST", id, url, f);
225}
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) {

Callers

nothing calls this directly

Calls 1

fire_httpFunction · 0.85

Tested by

no test coverage detected