Response

Response

new Response()

继承 koa 的 Response

Source:
See:

Members

realStatus :Number

Set a real status code.

e.g.: Using 302 status redirect to the global error page instead of show current 500 status page. And access log should save 500 not 302, then the realStatus can help us find out the real status code.

Source:

realStatus :Number

Get or set a real status code.

e.g.: Using 302 status redirect to the global error page instead of show current 500 status page. And access log should save 500 not 302, then the realStatus can help us find out the real status code.

Source:

type :Number

Get or set the length of content.

For Get: If the original content length is null or undefined, it will read out the body's content length as the return value.

Source:

type :String

Get or set the content-type.

For Set: If type is null or undefined, this property will be removed.

For Get: If the value is null or undefined, an empty string will be returned; if you have multiple values seperated by ;, ONLY the first one will be returned.

Source: