The Fetch API Response interface (undici).
Response
See also:
https://nodejs.org/api/globals.html#class-response
staticerror():Response
Returns a new Response object associated with a network error.
staticjson(data:Any, ?init:ResponseInit):Response
Creates a new response with a JSON body.
staticredirect(url:String, ?status:Int):Response
staticredirect(url:URL, ?status:Int):Response
Creates a new response with a different URL.
new(?body:BodyInit, ?init:ResponseInit)
read onlybody:Null<ReadableStream>
A ReadableStream of the body contents, or null.
ReadableStream
null
read onlybodyUsed:Bool
read onlyheaders:Headers
read onlyok:Bool
read onlyredirected:Bool
read onlystatus:Int
read onlystatusText:String
read onlytype:String
read onlyurl:String
arrayBuffer():Promise<ArrayBuffer>
blob():Promise<Blob>
bytes():Promise<Uint8Array>
clone():Response
formData():Promise<FormData>
json():Promise<Any>
text():Promise<String>