Answers for "How do you access the payload of the response"

0

How do you access the payload of the response

response.getBody()
response.body()
 
Request:
- GET HTTP method
- API endpoint/URL: IP:8000/api/hello
- No headers but we could add:
Accept - Json
Response:

We verified the response:
- status code -> 200
- Headers:
- ContentType
- Date
- Content-length
- Body/PayLoad: that it contains expected data.
Posted by: Guest on December-04-2020

Code answers related to "How do you access the payload of the response"

Browse Popular Code Answers by Language