Request
Constructors
new Request(id, type, method, url, headers, body)
new Request(
   id, 
   type, 
   method, 
   url, 
   headers, 
   body): Request
Parameters
| Parameter | Type | 
|---|---|
id | string | 
type | ResourceType | 
method | RequestMethod | 
url | string | 
headers | Record<string, string> | 
body | Uint8Array | 
Methods
getBody()
getBody(): Uint8Array
getHeaders()
getHeaders(): Record<string, string>
getId()
getId(): string
getMethod()
getMethod(): RequestMethod
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> | 
setUrl()
setUrl(url): void
Parameters
| Parameter | Type | 
|---|---|
url | string |