You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang...@googlegroups.com
I realize that this is very likely a more generic Go question, but I figured any general responses would just be "net/http" examples.
I'm using goweb in an API project and I'd like to be able to receive binary data (zip files, in this case) with my application. Does anyone have examples of this in goweb or can you shed some light on the best way to go about it?
Thank you!
Christopher Hobbs
unread,
Aug 1, 2012, 10:00:39 PM8/1/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang...@googlegroups.com
In case anyone comes across this, I managed to solve the issue just by realizing that the Request field of the Context struct is just a Request struct from net/http. I just rolled from there. I can post sample code if necessary, but once I figured that out, it was pretty straightforward.
matryer
unread,
Aug 2, 2012, 5:36:46 PM8/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang...@googlegroups.com
Christopher,
Do you think adding some helpers to the Context would be helpful here? Or should Goweb focus on what it does best and leave the rest to the devs?
Mat
Christopher M. Hobbs
unread,
Aug 2, 2012, 11:16:23 PM8/2/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to golang...@googlegroups.com
I think clearer documentation stating that cx.Request is simply a net/http
Request struct would work just fine. I like the simplicity/minimalism
of goweb as it stands. It gets rid of a lot of boilerplate for me and
then gets out of the way. I don't think additional helpers are
necessary.
I'd be happy to post some sample code for the documentation if you
think it's a good idea.