Skip to content

Feature Request: Simple way to serialize/output an HTTP request #151

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

Closed
RussellHaley opened this issue May 5, 2019 · 2 comments
Closed

Comments

@RussellHaley
Copy link
Contributor

RussellHaley commented May 5, 2019

It may just be my use case, but it would be nice to be able to get a string of my http request that I can dump to file prior to sending, especially once https is turned on. I might be able to piece something together from the http.request:go() function, but thought I'd mention it. I looked briefly at the go function and it seems heavily intertwined with the socket connection (I suspect due to the way an http request is actually sent).

Thanks,
Russ

@daurnimator
Copy link
Owner

Why would you want to dump it to file?

For debugging I mostly use:

  • headers:dump()
  • set SOCKET_DEBUG=1 environment variables

See also #69

@RussellHaley
Copy link
Contributor Author

Works for me! Thanks.

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

No branches or pull requests

2 participants