qubit_http/request/http_request_body_byte_stream.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2025 - 2026.
4 * Haixing Hu, Qubit Co. Ltd.
5 *
6 * All rights reserved.
7 *
8 ******************************************************************************/
9//! Pin-boxed byte stream type for streaming request bodies.
10
11use std::pin::Pin;
12
13use bytes::Bytes;
14use futures_util::Stream;
15
16/// Pin-boxed async stream used for request streaming upload bodies.
17pub type HttpRequestBodyByteStream =
18 Pin<Box<dyn Stream<Item = std::io::Result<Bytes>> + Send + 'static>>;