Interface SinonFakeXMLHttpRequest
Properties
async
async: boolean
Defined in node_modules/@types/sinon/index.d.ts:838
method
method: string
Defined in node_modules/@types/sinon/index.d.ts:817
password
password: string
Defined in node_modules/@types/sinon/index.d.ts:846
requestBody
requestBody: string
Defined in node_modules/@types/sinon/index.d.ts:825
requestHeaders
requestHeaders: any
Defined in node_modules/@types/sinon/index.d.ts:821
responseXML
responseXML: Document
Defined in node_modules/@types/sinon/index.d.ts:852
status
status: number
Defined in node_modules/@types/sinon/index.d.ts:830
statusText
statusText: string
Defined in node_modules/@types/sinon/index.d.ts:834
upload
Defined in node_modules/@types/sinon/index.d.ts:848
url
url: string
Defined in node_modules/@types/sinon/index.d.ts:813
username
username: string
Defined in node_modules/@types/sinon/index.d.ts:842
withCredentials
withCredentials: boolean
Defined in node_modules/@types/sinon/index.d.ts:847
Methods
autoRespond
autoRespond( ms: number ) : void
Defined in node_modules/@types/sinon/index.d.ts:878
Parameters
Returns void
error
Defined in node_modules/@types/sinon/index.d.ts:882
Returns void
getAllResponseHeaders
getAllResponseHeaders( ) : any
Defined in node_modules/@types/sinon/index.d.ts:861
Returns any
getResponseHeader
getResponseHeader( header: string ) : string
Defined in node_modules/@types/sinon/index.d.ts:857
Parameters
Returns string
onerror
Defined in node_modules/@types/sinon/index.d.ts:883
Returns void
respond
respond( status: number , headers: any , body: string ) : void
Defined in node_modules/@types/sinon/index.d.ts:877
Parameters
status: number
headers: any
body: string
Returns void
setResponseBody
setResponseBody( body: string ) : void
Defined in node_modules/@types/sinon/index.d.ts:873
Parameters
Returns void
setResponseHeaders
setResponseHeaders( headers: any ) : void
Defined in node_modules/@types/sinon/index.d.ts:868
Parameters
Returns void
Legend
Variable
Function
Type alias
Interface
Interface with type parameter
Class
Class with type parameter
Whether or not the request is asynchronous.