Last change
on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | import { Subscriber } from '../../Subscriber';
|
---|
| 2 | import { AjaxResponse } from './AjaxObservable';
|
---|
| 3 |
|
---|
| 4 | /**
|
---|
| 5 | * @see {@link ajax}
|
---|
| 6 | *
|
---|
| 7 | * @interface
|
---|
| 8 | * @name AjaxRequest
|
---|
| 9 | * @noimport true
|
---|
| 10 | */
|
---|
| 11 | export class AjaxRequestDoc {
|
---|
| 12 | /**
|
---|
| 13 | * @type {string}
|
---|
| 14 | */
|
---|
| 15 | url: string = '';
|
---|
| 16 | /**
|
---|
| 17 | * @type {number}
|
---|
| 18 | */
|
---|
| 19 | body: any = 0;
|
---|
| 20 | /**
|
---|
| 21 | * @type {string}
|
---|
| 22 | */
|
---|
| 23 | user: string = '';
|
---|
| 24 | /**
|
---|
| 25 | * @type {boolean}
|
---|
| 26 | */
|
---|
| 27 | async: boolean = false;
|
---|
| 28 | /**
|
---|
| 29 | * @type {string}
|
---|
| 30 | */
|
---|
| 31 | method: string = '';
|
---|
| 32 | /**
|
---|
| 33 | * @type {Object}
|
---|
| 34 | */
|
---|
| 35 | headers: Object = null;
|
---|
| 36 | /**
|
---|
| 37 | * @type {number}
|
---|
| 38 | */
|
---|
| 39 | timeout: number = 0;
|
---|
| 40 | /**
|
---|
| 41 | * @type {string}
|
---|
| 42 | */
|
---|
| 43 | password: string = '';
|
---|
| 44 | /**
|
---|
| 45 | * @type {boolean}
|
---|
| 46 | */
|
---|
| 47 | hasContent: boolean = false;
|
---|
| 48 | /**
|
---|
| 49 | * @type {boolean}
|
---|
| 50 | */
|
---|
| 51 | crossDomain: boolean = false;
|
---|
| 52 | /**
|
---|
| 53 | * @type {boolean}
|
---|
| 54 | */
|
---|
| 55 | withCredentials: boolean = false;
|
---|
| 56 | /**
|
---|
| 57 | * @return {XMLHttpRequest}
|
---|
| 58 | */
|
---|
| 59 | createXHR(): XMLHttpRequest {
|
---|
| 60 | return null;
|
---|
| 61 | }
|
---|
| 62 | /**
|
---|
| 63 | * @type {Subscriber}
|
---|
| 64 | */
|
---|
| 65 | progressSubscriber: Subscriber<any> = null;
|
---|
| 66 | /**
|
---|
| 67 | * @param {AjaxResponse} response
|
---|
| 68 | * @return {T}
|
---|
| 69 | */
|
---|
| 70 | resultSelector<T>(response: AjaxResponse): T {
|
---|
| 71 | return null;
|
---|
| 72 | }
|
---|
| 73 | /**
|
---|
| 74 | * @type {string}
|
---|
| 75 | */
|
---|
| 76 | responseType: string = '';
|
---|
| 77 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.