xhr2-cookies
- Version 1.1.0
- Published
- 1 dependency
- MIT license
Install
npm i xhr2-cookiesyarn add xhr2-cookiespnpm add xhr2-cookiesOverview
XMLHttpRequest polyfill for node.js
Index
Classes
XMLHttpRequest
- abort()
- cookieJar
- DONE
- DONE
- getAllResponseHeaders()
- getResponseHeader()
- HEADERS_RECEIVED
- HEADERS_RECEIVED
- InvalidStateError
- LOADING
- LOADING
- NetworkError
- nodejsBaseUrl
- nodejsHttpAgent
- nodejsHttpsAgent
- nodejsSet()
- onreadystatechange
- open()
- OPENED
- OPENED
- overrideMimeType()
- ProgressEvent
- readyState
- response
- responseText
- responseType
- responseUrl
- SecurityError
- send()
- setRequestHeader()
- status
- statusText
- SyntaxError
- timeout
- UNSENT
- UNSENT
- upload
- withCredentials
- XMLHttpRequestUpload
Interfaces
Classes
class XMLHttpRequest
class XMLHttpRequest extends XMLHttpRequestEventTarget {}constructor
constructor(options?: XMLHttpRequestOptions);property cookieJar
static cookieJar: any;property DONE
static DONE: number;property DONE
DONE: number;property HEADERS_RECEIVED
static HEADERS_RECEIVED: number;property HEADERS_RECEIVED
HEADERS_RECEIVED: number;property InvalidStateError
static InvalidStateError: typeof InvalidStateError;property LOADING
static LOADING: number;property LOADING
LOADING: number;property NetworkError
static NetworkError: typeof NetworkError;property nodejsBaseUrl
nodejsBaseUrl: string;property nodejsHttpAgent
nodejsHttpAgent: HttpsAgent;property nodejsHttpsAgent
nodejsHttpsAgent: HttpsAgent;property onreadystatechange
onreadystatechange: ProgressEventListener;property OPENED
static OPENED: number;property OPENED
OPENED: number;property ProgressEvent
static ProgressEvent: typeof ProgressEvent;property readyState
readyState: number;property response
response: any;property responseText
responseText: string;property responseType
responseType: string;property responseUrl
responseUrl: string;property SecurityError
static SecurityError: typeof SecurityError;property status
status: number;property statusText
statusText: string;property SyntaxError
static SyntaxError: typeof SyntaxError;property timeout
timeout: number;property UNSENT
static UNSENT: number;property UNSENT
UNSENT: number;property upload
upload: XMLHttpRequestUpload;property withCredentials
withCredentials: boolean;property XMLHttpRequestUpload
static XMLHttpRequestUpload: typeof XMLHttpRequestUpload;method abort
abort: () => void;method getAllResponseHeaders
getAllResponseHeaders: () => string;method getResponseHeader
getResponseHeader: (name: string) => string;method nodejsSet
static nodejsSet: (options: { httpAgent?: HttpAgent; httpsAgent?: HttpsAgent; baseUrl?: string;}) => void;method open
open: ( method: string, url: string, async?: boolean, user?: string, password?: string) => void;method overrideMimeType
overrideMimeType: (mimeType: string) => void;method send
send: (data?: string | ArrayBuffer) => void;method setRequestHeader
setRequestHeader: (name: string, value: any) => void;class XMLHttpRequestEventTarget
class XMLHttpRequestEventTarget {}property onabort
onabort: ProgressEventListener;property onerror
onerror: ProgressEventListener;property onload
onload: ProgressEventListener;property onloadend
onloadend: ProgressEventListener;property onloadstart
onloadstart: ProgressEventListener;property onprogress
onprogress: ProgressEventListener;property ontimeout
ontimeout: ProgressEventListener;method addEventListener
addEventListener: ( eventType: string, listener?: ProgressEventListenerOrEventListenerObject) => void;method dispatchEvent
dispatchEvent: (event: ProgressEvent) => boolean;method removeEventListener
removeEventListener: ( eventType: string, listener?: ProgressEventListenerOrEventListenerObject) => void;Interfaces
interface XMLHttpRequestOptions
interface XMLHttpRequestOptions {}property anon
anon?: boolean;Package Files (3)
Dependencies (1)
Dev Dependencies (15)
Peer Dependencies (0)
No peer dependencies.
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/xhr2-cookies.
- Markdown[](https://www.jsdocs.io/package/xhr2-cookies)
- HTML<a href="https://www.jsdocs.io/package/xhr2-cookies"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 2593 ms. - Missing or incorrect documentation? Open an issue for this package.
