HTTP Response
[[toc]]
Introduction
You can use ctx.Response()
for HTTP response in the Controller.
String
JSON
Custom Return
Response File
Download File
Attach Header
Return Success
Redirect
Get Response
You can get all information of ctx.Response()
, commonly used in HTTP middleware:
origin
contains some methods as shown below:
Method
Action
Body
Get response data
Header
Get response header
Size
Get response size
Status
Get response status
Last updated