xhr

ModuleIsomorphic

Wrapper for XMLHttpRequest

Documentation

xhrurlstringoptions`{}`OptionsProgressEventcallbackundefinedProgressEventXMLHttpRequest

A convenience method for issuing an XMLHttpRequest. callback is set as the onload, onerror, and ontimeout handler unless overridden in options. Setting options.json will also set a Content-Type: application/json header unless one is specified already in options.headers.

Optionsmethod'GET'stringuserundefinedstringpasswordundefinedstringtimeoutundefinednumberresponseType''stringonloadundefinedProgressEventonerrorundefinedProgressEventontimeoutundefinedProgressEventonreadystatechangeundefinedEventheaders`{}`objectjsonundefinedjsondataundefinedstringArrayBufferViewBlobDocumentFormData