Function createWebResponse
- createWebResponse(
body:
| string
| Blob
| ArrayBuffer
| ReadableStream<Uint8Array<ArrayBufferLike>>
| undefined,
options?: {
headers?: Headers | [string, string][] | Record<string, string>;
status?: number;
},
): WebResponseParameters
- body:
| string
| Blob
| ArrayBuffer
| ReadableStream<Uint8Array<ArrayBufferLike>>
| undefinedThe body to return.
Optionaloptions: {
headers?: Headers | [string, string][] | Record<string, string>;
status?: number;
}Optional statuscode and headers
Returns WebResponse
- body:
Create a webresponse
If a body is set but no content-type header is explicitly added, the content-type will be set to text/html; charset=utf-8