BodyString returns the string of the response body. This is cached once the first time it is called.
()
| 1195 | |
| 1196 | // BodyString returns the string of the response body. This is cached once the first time it is called. |
| 1197 | func (r TestResponse) BodyString() string { |
| 1198 | return string(r.BodyBytes()) |
| 1199 | } |
| 1200 | |
| 1201 | // DumpBody returns the byte array of the response body. This is cached once the first time it is called. |
| 1202 | func (r TestResponse) DumpBody() { |