Is it possible to access the Response Object from a service? You can access the Request from anywhere like this:
import { Inject, Injectable, Scope } from '@nestjs/common';
import { REQUEST } from '@nestjs/core';
@Injectable({ scope: Scope.REQUEST })
export class ResponseService {
constructor(@Inject(REQUEST) private readonly request: Request) {}
}
But is there a similar way for the Response or can I just create a new Response object?
Cheers