Skip to content

Possible way to grabFullResponse() or grabAllHeaders()? #114

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Azuka opened this issue Mar 7, 2025 · 4 comments · May be fixed by #116
Open

Possible way to grabFullResponse() or grabAllHeaders()? #114

Azuka opened this issue Mar 7, 2025 · 4 comments · May be fixed by #116

Comments

@Azuka
Copy link

Azuka commented Mar 7, 2025

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.

@W0rma
Copy link
Contributor

W0rma commented Mar 25, 2025

grabHttpHeader() allows to grab a header by its name.

AFAIK there is no method which allows to grab all headers at once.

@Azuka
Copy link
Author

Azuka commented Mar 27, 2025

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.

@W0rma
Copy link
Contributor

W0rma commented Mar 27, 2025

@Azuka I think it should be quite simple to add a method like grabHttpHeaders().
Do you want to create a PR?

@Azuka
Copy link
Author

Azuka commented Apr 23, 2025

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants