Closed Globegitter closed 9 years ago
yup, co-body
is just for parsing the body. this.request.query
|| this.request.querystring
is probably what you're looking for -- https://github.com/koajs/koa/blob/master/lib/request.js
Thank you for the clarification :)
If I just try the most basic example
When I am then visiting
localhost:3000
I am getting the errorUnsupported Media Type
. All I am trying to achieve right now is pars simple query parameters, such aslocalhost:3000?q=1
.Edit: Ahhh for this I don't need to
parse
it seems. So this is just for parsing post bodys then?