Skip to content

Save request and response json details in variables #81

Answered by leelaprasadv
Walrusv asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Walrusv !
Yes, inspect() prints the request, response onto terminal/console.
You can access the request and response details from spec object with spec._request and spec._response. In your case, it would be

servicio._request // to get the request
servicio._response // to get the response

Just add these after the toss() and you might want to explicitly access parts from _response (like body, headers).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Walrusv
Comment options

@leelaprasadv
Comment options

@Walrusv
Comment options

Answer selected by ASaiAnudeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants