Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expandable rx_buf? #67

Open
stevefan1999-personal opened this issue Jan 18, 2024 · 1 comment
Open

Expandable rx_buf? #67

stevefan1999-personal opened this issue Jan 18, 2024 · 1 comment

Comments

@stevefan1999-personal
Copy link

What if I can supply a Vec<u8> and won't have to expand the buffer and retry the request again?

Example code in question:
https://github.com/stevefan1999-personal/rust-igd/blob/e52d615a395e25b9134cea56e1d3225317d868ea/src/aio/mod.rs#L47-L70

@lulf
Copy link
Member

lulf commented Aug 8, 2024

Reqwless must work on no_std, so it cannot handle a Vec. Note that you really only need the rx_buf to be at least as big as the response headers. The rx_buf can be reused reading chunks of the response body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants