You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert_eq!(req.headers()["authorization"],"Foo bar baz");
123
+
http::Response::default()
124
+
});
125
+
126
+
let builder = client::create_builder(format!("http://{}", server.addr()).as_ref())
127
+
.auth(Credentials::AuthorizationHeader("Foo bar baz".into()));
128
+
129
+
let client = client::create(builder);
130
+
let _response = client.ping().send().await?;
131
+
132
+
Ok(())
133
+
}
134
+
119
135
// TODO: test PKI authentication. Could configure a HttpsConnector, maybe using https://github.com/sfackler/hyper-openssl?, or send to PKI configured Elasticsearch.
0 commit comments