search

Home  >  Q&A  >  body text

How to get the original request object in koa2?

ctx.request The object is a request object encapsulated by koa, so how to get the original # in http.createServer ##requestWhere is the object?

phpcn_u1582phpcn_u15822748 days ago555

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:24:01

    ctx.req就是http.createServer中的原始的request

    reply
    0
  • Cancelreply