Module: whatwg-misc

Helper module - Helper functions for the main module whatwg-xhr.
Version:
  • 1.0.0
Author:
  • Essam A. El-Sherif
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

A Node.js implementation of the WHATWG XMLHttpRequest Living Standard for non-browser environments.