1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-09 04:22:45 +03:00

Better Tower layers

This commit is contained in:
Quentin Gliech
2022-08-12 14:54:43 +02:00
parent 244aa1d0ac
commit 398379e21b
8 changed files with 311 additions and 58 deletions

View File

@@ -89,7 +89,9 @@ impl Options {
json: true,
url,
} => {
let mut client = mas_http::client("cli-debug-http").json();
let mut client = mas_http::client("cli-debug-http")
.response_body_to_bytes()
.json_response();
let request = hyper::Request::builder()
.uri(url)
.body(hyper::Body::empty())?;