Writing body of response to a file |
![]() ![]() ![]() |
Using the Http#getResponseToFile method you can write the body of an HttpResponse to a file.
Example
// write response body to a file http.getResponseToFile(request, new File("index.html")); |