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