Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
SinonFakeServer
Interface SinonFakeServer
Index
Properties
autoRespond
autoRespondAfter
fakeHTTPMethods
getHTTPMethod
requests
Methods
respond
respondWith
restore
Properties
public
autoRespond
:
boolean
public
autoRespondAfter
:
number
public
fakeHTTPMethods
:
boolean
public
getHTTPMethod
:
(request: SinonFakeXMLHttpRequest) => string
public
requests
:
SinonFakeXMLHttpRequest
[]
Methods
public
respond
(
)
public
respondWith
(
body
:
string
)
Parameters
body:
string
public
respondWith
(
response
:
Array<any>
)
Parameters
response:
Array<any>
public
respondWith
(
fn
:
(xhr: SinonFakeXMLHttpRequest) => void
)
Parameters
fn:
(xhr: SinonFakeXMLHttpRequest) => void
public
respondWith
(
url
:
string
, body
:
string
)
Parameters
url:
string
body:
string
public
respondWith
(
url
:
string
, response
:
Array<any>
)
Parameters
url:
string
response:
Array<any>
public
respondWith
(
url
:
string
, fn
:
(xhr: SinonFakeXMLHttpRequest) => void
)
Parameters
url:
string
fn:
(xhr: SinonFakeXMLHttpRequest) => void
public
respondWith
(
method
:
string
, url
:
string
, body
:
string
)
Parameters
method:
string
url:
string
body:
string
public
respondWith
(
method
:
string
, url
:
string
, response
:
Array<any>
)
Parameters
method:
string
url:
string
response:
Array<any>
public
respondWith
(
method
:
string
, url
:
string
, fn
:
(xhr: SinonFakeXMLHttpRequest) => void
)
Parameters
method:
string
url:
string
fn:
(xhr: SinonFakeXMLHttpRequest) => void
public
respondWith
(
url
:
RegExp
, body
:
string
)
Parameters
url:
RegExp
body:
string
public
respondWith
(
url
:
RegExp
, response
:
Array<any>
)
Parameters
url:
RegExp
response:
Array<any>
public
respondWith
(
url
:
RegExp
, fn
:
(xhr: SinonFakeXMLHttpRequest) => void
)
Parameters
url:
RegExp
fn:
(xhr: SinonFakeXMLHttpRequest) => void
public
respondWith
(
method
:
string
, url
:
RegExp
, body
:
string
)
Parameters
method:
string
url:
RegExp
body:
string
public
respondWith
(
method
:
string
, url
:
RegExp
, response
:
Array<any>
)
Parameters
method:
string
url:
RegExp
response:
Array<any>
public
respondWith
(
method
:
string
, url
:
RegExp
, fn
:
(xhr: SinonFakeXMLHttpRequest) => void
)
Parameters
method:
string
url:
RegExp
fn:
(xhr: SinonFakeXMLHttpRequest) => void
public
restore
(
)
Globals
sinon