libs/ssr/src/response/noop.class.ts
import { DaffSsrResponse } from './type';
/**
* A noop response that will be used in all environments except SSR.
*/
export class DaffSsrNoopResponse implements DaffSsrResponse {
/**
* Returns an empty string that is not representative of anything.
*/
get(header: string): Array<string> | string {
return '';
}
/**
* Does nothing in the noop.
*/
set(name: string, value: Array<string> | string): void {}
/**
* Does nothing in the noop.
*/
append(name: string, value: Array<string> | string): void {}
/**
* Does nothing in the noop.
*/
status(code: number): void {}
}