public interface ResponseBody<T extends ResponseBody<T>> extends ResponseBodyExtractionOptions
Modifier and Type | Method and Description |
---|---|
T |
peek()
Peeks into the JSON that JsonPath will parse by printing it to the console.
|
T |
prettyPeek()
Peeks into the response body by printing it to the console in a prettified manner.
|
String |
prettyPrint()
Pretty-print the response body if possible and return it as string.
|
String |
print()
Print the response body and return it as string.
|
as, as, as, as, as, as, as, htmlPath, jsonPath, jsonPath, path, xmlPath, xmlPath, xmlPath
asByteArray, asInputStream, asString
String print()
String prettyPrint()
T peek()
prettyPrint()
. If you want to return a prettified version of the content and also print it to the console use prettyPrint()
.
Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek the content has is downloaded and transformed into another data structure and is rendered from this data structure.
T prettyPeek()
prettyPrint()
. If you want to return a prettified version of the content and also print it to the console use prettyPrint()
.
Note that the content is not guaranteed to be looking exactly like the it does at the source. This is because once you peek the content has is downloaded and transformed into another data structure and is rendered from this data structure.
Copyright © 2010–2019. All rights reserved.