XHRConnection
class deprecated
Creates connections using XMLHttpRequest. Given a fully-qualified request, an XHRConnection will immediately create an XMLHttpRequest object and send the request.
Deprecated: see https://angular.io/guide/http
class XHRConnection implements Connection {
constructor(req: Request, browserXHR: BrowserXhr, baseResponseOptions?: ResponseOptions)
request: Request
response: Observable<Response>
readyState: ReadyState
setDetectedContentType(req: any, _xhr: any)
} Description
This class would typically not be created or interacted with directly inside applications, though the MockConnection may be interacted with in tests.
Constructor
|
| req | Type: |
| browserXHR | Type: |
| baseResponseOptions | Type: Optional. Default is |
Properties
| Property | Description |
|---|---|
request: Request | |
response: Observable<Response> | Response |
readyState: ReadyState |
Methods
| setDetectedContentType() | ||||
|---|---|---|---|---|
|
| req | Type: |
| _xhr | Type: |
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v6.angular.io/api/http/XHRConnection