UNPKG

@squidcloud/client

Version:

A typescript implementation of the Squid client

12 lines (11 loc) 388 B
/** A response object with type T for the body. */ export interface HttpResponse<BodyType = unknown> { /** HTTP status code of the response. */ status: number; /** HTTP status text of the response. */ statusText: string; /** Headers included in the response. */ headers: Record<string, string>; /** Response body, typed as `BodyType`. */ body: BodyType; }