MCPcopy Create free account
hub / github.com/PerroEngine/Perro / text

Method text

perro_source/api_modules/perro_networking/src/http.rs:174–183  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

172 pub fn post_variant(url: impl Into<String>, body: Variant) -> Self {
173 Self::new(HttpMethod::Post, url, HttpBody::Variant(body))
174 }
175
176 pub fn post_bytes(url: impl Into<String>, body: Vec<u8>) -> Self {
177 Self::new(HttpMethod::Post, url, HttpBody::Bytes(body))
178 }
179
180 pub fn new(method: HttpMethod, url: impl Into<String>, body: HttpBody) -> Self {
181 Self {
182 method,
183 url: url.into(),
184 headers: Vec::new(),
185 body,
186 timeout_ms: None,

Callers 2

fetchShellDocFunction · 0.80
fetchShellDocFunction · 0.80

Calls 1

cloneMethod · 0.80

Tested by

no test coverage detected