MockConnection

Experimental

Class

Class Overview

class MockConnection implements Connection {
constructor(req: Request)

readyState : ReadyState
request : Request
response : ReplaySubject<Response>
mockRespond(res: Response)
mockDownload(res: Response)
mockError(err?: Error)

}

Class Description

Constructor

constructor(req: Request)

Class Details

exported from http/testing/index, defined in http/testing/src/mock_backend.ts