Type alias HttpResponse<D>

HttpResponse<D>: {
    body: string;
    data: D;
    headers: HttpResponseHeaders;
    ok: boolean;
    status: number;
    statusText: string;
}

Defines a HTTP Response with custom data.

Type Parameters

  • D = any

Type declaration

  • body: string
  • data: D
  • headers: HttpResponseHeaders
  • ok: boolean
  • status: number
  • statusText: string

Generated using TypeDoc