|
function | trunc (what, maxlen, coerce) |
|
| if (!globalThis.XMLHttpRequestEventTarget) globalThis.XMLHttpRequestEventTarget |
|
Implement the XMLHttpRequest (XHR) API
- Author
- Tom Tang xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work
- Date
- August 2023
- Copyright
- Copyright (c) 2023 Distributive Corp.
◆ if()
if |
( |
!globalThis. |
XMLHttpRequestEventTarget | ) |
|
◆ trunc()
function trunc |
( |
|
what, |
|
|
|
maxlen, |
|
|
|
coerce |
|
) |
| |
Truncate a string-like thing for display purposes, returning a string.
- Parameters
-
{any} | what The thing to truncate; must have a slice method and index property. Works with string, array, typedarray, etc. |
{number} | maxlen The maximum length for truncation |
{boolean=} | coerce Not false = coerce to printable character codes
|
- Returns
- {string}
◆ const
◆ debug
◆ FORBIDDEN_REQUEST_METHODS
const FORBIDDEN_REQUEST_METHODS |
Initial value:= [
'TRACE',
'TRACK',
'CONNECT'
]
◆ ProgressEvent
◆ strict
◆ XMLHttpRequest
◆ XMLHttpRequestEventTarget
◆ XMLHttpRequestUpload