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

Add ReadCloser method to jwriter and buffer #77

Merged
merged 1 commit into from
Feb 17, 2017

Commits on Feb 17, 2017

  1. Add ReadCloser method to jwriter and buffer

    When marshalling something as body for a http.Request we can only use
    BuildBytes() which always allocates a buffer for our whole body. This
    pull request adds a ReadCloser() method which returns an io.ReadCloser
    that can be passed as body into http.NewRequest. This ReadCloser will
    read from the existing buffs and putBuf them when they are not needed
    anymore.
    erikdubbelboer committed Feb 17, 2017
    Configuration menu
    Copy the full SHA
    ce0e787 View commit details
    Browse the repository at this point in the history