fix cargo.toml

This commit is contained in:
Jun Kurihara 2022-07-20 11:48:43 +09:00
commit f51cd5e012
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
2 changed files with 2 additions and 3 deletions

View file

@ -53,8 +53,6 @@ h3 = { git = "https://github.com/hyperium/h3.git" }
h3-quinn = { git = "https://github.com/hyperium/h3.git" } h3-quinn = { git = "https://github.com/hyperium/h3.git" }
bytes = "1.1.0" bytes = "1.1.0"
mimalloc-rust = "0.2.0" mimalloc-rust = "0.2.0"
thiserror = "1.0.31"
[dev-dependencies] [dev-dependencies]

View file

@ -99,9 +99,10 @@ where
tls_server_name: ServerNameLC, tls_server_name: ServerNameLC,
) -> Result<()> ) -> Result<()>
where where
S: BidiStream<Bytes> + Send + 'static, S: BidiStream<Bytes>,
{ {
let (req_parts, _) = req.into_parts(); let (req_parts, _) = req.into_parts();
// let (mut send_stream, mut recv_stream) = stream.split(); // TODO: split stream and async body handling
// TODO: h3 -> h2/http1.1等のプロトコル変換のため、一旦全部バッファリングしないと無理そう。H3->H3ならBytesを直に流し込めるのだが。 // TODO: h3 -> h2/http1.1等のプロトコル変換のため、一旦全部バッファリングしないと無理そう。H3->H3ならBytesを直に流し込めるのだが。
let mut body_buf = BytesMut::new(); let mut body_buf = BytesMut::new();