You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 Why need to specify the post data, params argument and output type?
All of post data, params argument and output type can be found from function signature, using order in signature. That will allow to use type defined in other package more easily, like: http://play.golang.org/p/FUj-FXKr71
2 Why Marshaller takes []byte instead of io.Reader/io.Writer?
I think use io.Reader/io.Writer will much convenience for streaming io. Direct reading from request.Body or writing to responseWriter will also save a lot of memory if post or response is very large.
Original issue reported on code.google.com by [email protected] on 7 Mar 2013 at 9:24
The text was updated successfully, but these errors were encountered:
I've attached a patch for the Marshallers to use an io.Reader. I've internally
used this for letting a large file stream down, rather then having to be fully
read into memory.
Let me know what you think...
Original issue reported on code.google.com by
[email protected]
on 7 Mar 2013 at 9:24The text was updated successfully, but these errors were encountered: