Sometimes I would like to copy the request that will sent over the wire to show someone what I am sending in my request so that they can understand it even if they are not familiar with this extension which supports variables, etc.
I'm thinking this could be solved in several ways:
I think the simplest solution would be to add a button called "Copy Full Response" to the .http/.rest file editor (similar to the the "Save Full Response", "Save Response body", and "Copy Response Body" buttons available on the response view).
P.S. I am aware of the "Copy Request as cURL" feature but I don't want all the headers, etc. that will be send I just want what I have in my editor for an HTTP request but with variables resolved based on my environment, etc. Thanks!
This would also be useful to me. Some more ideas around the UX (I don't have a clear favorite):
# -------------- Request --------------
POST https://example.com/graphql
Accept: application/json
User-Agent: vscode-restclient
{
demo
}
# -------------- Response --------------
HTTP/1.1 200 OK
Server: nginx
{
"data": {
"demo": "hello"
}
}
Id also like this feature. When a request sent with generated data , its difficult to see exactly what was sent.
I also really need this feature to debug requests and to be sured that request is crafted correctly. This could save a lot of time.
Visualizing the actual request that went out would be very useful, especially to verify you built it properly.
On multiple occasions today, either the variable was not properly set, or I tried splitting a curl request over multiple lines and forgot the \ character to denote that the statement continues on the next line. Problem is you only suddenly see an error popup but nowhere see the debug showing what is actually getting sent.
There is now the rest-client.previewOption setting, that you can set to:
Seems like changing this setting to exchange would provide the desired request, right?
Should this issue be closed?
@jackbravo Oh yes. Thank you!

Most helpful comment
There is now the
rest-client.previewOptionsetting, that you can set to:Seems like changing this setting to
exchangewould provide the desired request, right?Should this issue be closed?