mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 18:08:11 +00:00 
			
		
		
		
	 a5a48d8348
			
		
	
	
		a5a48d8348
		
			
		
	
	
	
	
		
			
			These paths to body and files differ from Koa's typical pathing, adding them to the docs temporarily until the docs are reworked. Signed-off-by: Derrick Mehaffy <derrickmehaffy@gmail.com>
		
			
				
	
	
	
		
			732 B
		
	
	
	
	
	
	
	
			
		
		
	
	
			732 B
		
	
	
	
	
	
	
	
Requests and responses
Request
The context object (ctx) contains all the requests related information. They are accessible through ctx.request, from controllers and policies.
Strapi passes the body on ctx.request.body and files through ctx.request.files
For more information, please refer to the Koa request documentation.
Responses
The context object (ctx) contains a list of values and functions useful to manage server responses. They are accessible through ctx.response, from controllers and policies.
For more information, please refer to the Koa response documentation.