grabbing request body?

13 views
Skip to first unread message

Andy Glover

unread,
Jul 7, 2011, 10:24:12 PM7/7/11
to Gretty Web Framework
Gretty is pretty slick -- way to go with this project! I'm stuck
trying to do something simple though so I figure I'm missing
something. I want to obtain the request body -- in this case, incoming
JSON. But when I call request.contentText I don't seem to get
anything. I'm fairly certain I'm sending a valid body as part of an
HTTP PUT. Is there another way to obtain the request's body?

Thanks!
-Andy

Alex Tkachman

unread,
Jul 8, 2011, 3:14:43 AM7/8/11
to gre...@googlegroups.com
Can it be so that your request is chunked?

Andy Glover

unread,
Jul 8, 2011, 8:31:06 AM7/8/11
to Gretty Web Framework
request.isChunked() returns true -- is there an easy way to de-chunk a
request w/Gretty?

Alex Tkachman

unread,
Jul 8, 2011, 9:28:03 AM7/8/11
to gre...@googlegroups.com
very good. I have bug caused by recent refactoring, which I will fix
and upload asap.
I assume you use gradle/maven, right?

Alex Tkachman

unread,
Jul 8, 2011, 9:48:38 AM7/8/11
to gre...@googlegroups.com
Please try version 0.4.280. If it works I will commit the change.

Andy Glover

unread,
Jul 8, 2011, 10:12:05 AM7/8/11
to Gretty Web Framework
Great! That fixed it -- request.contentText returns the incoming JSON
document -- thanks!!
-Andy

On Jul 8, 9:48 am, Alex Tkachman <alex.tkach...@gmail.com> wrote:
> Please try version 0.4.280. If it works I will commit the change.
>
>
>
>
>
>
>
> On Fri, Jul 8, 2011 at 4:28 PM, Alex Tkachman <alex.tkach...@gmail.com> wrote:
> > very good. I have bug caused by recent refactoring, which I will fix
> > and upload asap.
> > I assume you use gradle/maven, right?
>

Alex Tkachman

unread,
Jul 8, 2011, 10:17:45 AM7/8/11
to gre...@googlegroups.com
My pleasure, Andy.
What do you try to use Gretty for? Drop me a line off the list if you prefer.
Reply all
Reply to author
Forward
0 new messages