Context

Introduction

Context is just another name for the parameter available in middleware, plugins, and route methods. These are the available values.

  • req: request
  • res: response
  • params: see params docs
  • query: see query docs
  • buffer: micro's buffer function
  • text: micro's text function
  • json: micro's json function
  • send: micro's send function
  • sendError: micro's sendError function
  • createError: micro's createError function