Possible way to `grabFullResponse()` or `grabAllHeaders()`?
Currently the rest module only supports grabResponse() which returns a string.
It would be nice to grab the full response including headers, or just the headers if needed to troubleshoot. I've looked at the documentation and it's not very clear how to get the underlying response from a test.
grabHttpHeader() allows to grab a header by its name.
AFAIK there is no method which allows to grab all headers at once.
grabHttpHeader()allows to grab a header by its name.AFAIK there is no method which allows to grab all headers at once.
That's what I'm looking for. There's really no way to introspect on headers without knowing what they are.
@Azuka I think it should be quite simple to add a method like grabHttpHeaders().
Do you want to create a PR?
@Azuka I think it should be quite simple to add a method like
grabHttpHeaders(). Do you want to create a PR?
Sorry I got sidetracked but I've opened one now. @W0rma