(&self)
| 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, |
no test coverage detected