classafBounce::BedClient
sys::Obj afButter::ButterDish afBounce::BedClient
Use to send requests to your Bed App.
- bedServer
BedServer bedServer
The
BedServer
this terminator makes calls against.- getThreadedClient
static BedClient getThreadedClient()
- lastRequest
ButterRequest? lastRequest
The last request. Returns
null
if no requests have been made.- lastResponse
ButterResponse? lastResponse
The response to the last request. Returns
null
if no requests have been made.- make
new make(Butter butter)
- refresh
Void refresh()
- rootElement
XElem rootElement()
Returns the root XML element of the response
- selectCss
XElem[] selectCss(Str cssSelector)
Selects XML elements from the XML response
- sendRequest
virtual override ButterResponse sendRequest(ButterRequest req)
- shutdown
Void shutdown()
Shuts down the associated
BedServer
and the running web app.- sizzleDoc
SizzleDoc sizzleDoc()
Returns
SizzleDoc
of the XML response.- webSession
WebSession? webSession(Bool create := false)
The
WebSession
this client has in the Bed App.If a session has not yet been created then it returns
null
- or creates a new session ifcreate
istrue
.