$Response
You can directly use instance of this class.
$Response
The $Response class controls all of the content contained in the
response from the Angie application. This is an extended NodeJS http/https
createServer response and is responsible for storing this response and the
content associated with the response. It can be required using a module
import, but probably should not be unless it is being subclassed for a
dependency package. It can also be used as an injected provider using
$request
.
Example:
$Injector.get('$response');
Constructor Summary
Public Constructor | ||
public |
constructor(response: *) |
Member Summary
Public Members | ||
public |
response: * |
Method Summary
Public Methods | ||
public |
Sets a header on the instance's encapsulation of NodeJS response. This function performs no safe checks on the headers. |
since 0.4.4 |
Public Constructors
public constructor(response: *) source
Params:
Name | Type | Attribute | Description |
response | * |