hyperium / http

Rust HTTP types
Apache License 2.0
1.14k stars 284 forks source link

How can I get the corresponding request object from a response object? #542

Closed monadbobo closed 2 years ago

monadbobo commented 2 years ago

How can I get the corresponding request object from a response object?

seanmonstar commented 2 years ago

Hey there! I'm sorry, I don't understand what you mean. Do you mean how do you know what request was sent on a client when you get a response back? That's not something that http keeps track of. You could do so in your own code...