Skip to content

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

Closed

Description

@RussellHaley

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

Activity

  1. daurnimator commented on May 5, 2019

    @daurnimator
    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

  2. RussellHaley commented on May 6, 2019

    @RussellHaley
    ContributorAuthor

    Works for me! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions