Helper module - Helper functions for the main module whatwg-xhr.
- Version:
- 1.0.0
- Source:
Methods
(static) dataURLProcessor(dataURL) → {object|string}
A dataURLProcessor function, as defined by WHATWG Fetch Living Standard.
Parameters:
Name | Type | Description |
---|---|---|
dataURL |
URL | URL object. |
- Source:
Returns:
An object of mimeType and body, or 'failure' string.
- Type
- object | string
(static) parseMIMEType(input, input) → {object}
Parse a MIME type, given a string input, as defined by WHATWG MIME Sniffing Living Standard.
Parameters:
Name | Type | Description |
---|---|---|
input |
string | |
input |
string | String input. |
- Source:
Returns:
Serialized MIME type record.
- Type
- object
(static) serializeAMimeType(mimeType) → {string}
Serialize a MIME type, as defined by WHATWG MIME Sniffing Living Standard.
Parameters:
Name | Type | Description |
---|---|---|
mimeType |
object | MIME type record. |
- Source:
Returns:
Serialized MIME type record.
- Type
- string