/** * This class provide a way to customize the http response. * * @export * @class HttpResponse */ import { ApplicationError } from "./errors/applicationRequestError"; export declare class HttpResponse { /** * Http code (default is 200) * * @type {number} * @memberOf HttpResponse */ statusCode: number; /** * List of response headers * * @type {any} * @memberOf HttpResponse */ headers: any; /** * Define a specific ContentType * * @type {string} * @memberOf HttpResponse */ contentType: string | undefined; /** * Response content * * @type {*} * @memberOf HttpResponse */ content: any; /** * Content encoding (like binary, hex,...) * * @type {string} * @memberOf HttpResponse */ encoding: string; static createFromError(err: ApplicationError): HttpResponse; constructor(content?: any, statusCode?: number); /** * Add a custom header value to the response * * @param {string} name * @param {string} value */ addHeader(name: string, value: string): void; } export declare class HttpRedirectResponse extends HttpResponse { constructor(url: string); }