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 @angular/http/testing/index, defined in @angular/http/testing/mock_backend.ts