Response
Constructors
new Response(id, type, url, status, headers, body)
new Response(
   id, 
   type, 
   url, 
   status, 
   headers, 
   body): Response
Parameters
| Parameter | Type | 
|---|---|
id | string | 
type | ResourceType | 
url | string | 
status | number | 
headers | Record<string, string> | 
body | Uint8Array | 
Methods
getBody()
getBody(): Uint8Array
getHeaders()
getHeaders(): Record<string, string>
getId()
getId(): string
getStatus()
getStatus(): number
getType()
getType(): ResourceType
getUrl()
getUrl(): string
isDirty()
isDirty(): boolean
setBody()
setBody(body): void
Parameters
| Parameter | Type | 
|---|---|
body | Uint8Array | 
setHeaders()
setHeaders(headers): void
Parameters
| Parameter | Type | 
|---|---|
headers | Record<string, string> |