Skip to content
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

added raw format in order to return unformated guzzle response #349

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

happybunnyz
Copy link
Contributor

Hey there,
small pull request to introduces the option to retrieve the raw Guzzle response by adding format = 'raw'.

@omniphx
Copy link
Owner

omniphx commented Sep 1, 2024

Hi @happybunnyz, haven't tested this out in a while but you should be able to get a raw response using none: https://github.com/omniphx/forrest?tab=readme-ov-file#raw-response-output

If it's not working as intended, I'm happy to merge this in for you

@happybunnyz
Copy link
Contributor Author

Thank you for the response. I've just tested it again.

The none option will return only the body/content of the Guzzle response but unformatted only.
It still strips the headers and other parts of the Guzzle response.

For my project, I need to retain the headers for logging purposes.

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 this pull request may close these issues.

2 participants