matrix-sdk: Implement sending of Http DELETE requests.
parent
abe40dff11
commit
442464add6
|
@ -942,8 +942,14 @@ impl Client {
|
||||||
.body(body)
|
.body(body)
|
||||||
.header(reqwest::header::CONTENT_TYPE, "application/json")
|
.header(reqwest::header::CONTENT_TYPE, "application/json")
|
||||||
}
|
}
|
||||||
HttpMethod::DELETE => unimplemented!(),
|
HttpMethod::DELETE => {
|
||||||
_ => panic!("Unsuported method"),
|
let body = request.body().clone();
|
||||||
|
self.http_client
|
||||||
|
.delete(url)
|
||||||
|
.body(body)
|
||||||
|
.header(reqwest::header::CONTENT_TYPE, "application/json")
|
||||||
|
}
|
||||||
|
method => panic!("Unsuported method {}", method),
|
||||||
};
|
};
|
||||||
|
|
||||||
let request_builder = if requires_auth {
|
let request_builder = if requires_auth {
|
||||||
|
|
Loading…
Reference in New Issue