import { HttpStatusCode } from '../enum'; import { HttpHeadersInterface } from './http-headers.interface'; /** * Abstraction of HTTP response. */ export interface HttpResponseInterface { /** * Get final destination URL. */ readonly url: string; /** * Get response status code. */ readonly status: HttpStatusCode; /** * Get response headers. */ readonly headers: HttpHeadersInterface; /** * Get response content. */ readonly content: Promise; /** * Create copy, replacing given properties. */ clone(replace?: Partial>): HttpResponseInterface; }