Extract the body from a raw http request?

I saw this library, but i dont know much about it httparse - Rust

Request:
stream.write_all(b"GET / HTTP/1.0\r\n\r\n").await?;

Response:
"
HTTP/1.1 200 OK
content-type: text/plain; charset=utf-8
content-length: 14
date: Sat, 03 Aug 2024 03:24:29 GMT

127.0.0.1:3000
"

Please ask as specific a question as you can. The best thing is to try to extract the body using the API from the crate, and then ask questions about that or describe the problems you had.

Another thing to know: when your question is answered, please check the box at the bottom of the reply that answered your question. This will show the question as answered in the title of the topic, so everything knows that it was answered. And when someone is looking for an answer, it will show the answer in the original post.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.