How can you read full response?

Posted by Jessica Taylor | Updated on

The response body doesn’t may not return full response data because sometimes servers also return special headers or status code which which are important for the application workflow. Inorder to get full response, you should use
observe option from HttpClient:

Now HttpClient.get() method returns an Observable of typed HttpResponse rather than just the JSON data.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers