Skip to content
This repository was archived by the owner on Aug 20, 2026. It is now read-only.

0.1.2

Latest

Choose a tag to compare

@amigin amigin released this 01 Aug 12:16
· 3 commits to main since this release
Implement streaming request support in MyHttpClient

- Added `streaming_request` field to `MyHttpClientConnectionContext` to manage ongoing streamed requests.
- Introduced `write_to_socket` and `write_chunk_to_socket` functions for handling payload writing with timeouts.
- Enhanced `WritePartState` to handle streamed requests, ensuring queued requests are sent after the current streaming request completes.
- Implemented `start_streamed_request`, `publish_chunk`, and `finish_streamed_request` methods for managing the lifecycle of streamed requests.
- Updated `MyHttpRequest` to support creating streamed requests without framing headers.
- Modified `do_streamed_request` in `MyHttpHyperClient` to accept an optional content size for framing.
- Added tests for streamed body handling, including chunked and content-length scenarios, ensuring proper request handling and error conditions.