# AjaxRequest

```typescript
interface AjaxRequest {
  url?: string;
  body?: any;
  user?: string;
  async?: boolean;
  method?: string;
  headers?: Object;
  timeout?: number;
  password?: string;
  hasContent?: boolean;
  crossDomain?: boolean;
  withCredentials?: boolean;
  createXHR?: () => XMLHttpRequest;
  progressSubscriber?: Subscriber<any>;
  responseType?: string;
}
```

## Propiedades

| Propiedad          | Tipo                   | Descripción |
| ------------------ | ---------------------- | ----------- |
| url                | `string`               |             |
| body               | `any`                  |             |
| user               | `string`               |             |
| async              | `boolean`              |             |
| method             | `string`               |             |
| headers            | `Object`               |             |
| timeout            | `number`               |             |
| password           | `string`               |             |
| hasContent         | `boolean`              |             |
| crossDomain        | `boolean`              |             |
| withCredentials    | `boolean`              |             |
| createXHR          | `() => XMLHttpRequest` |             |
| progressSubscriber | `Subscriber`           |             |
| responseType       | `string`               |             |

## Recursos adicionales

[![Source code](https://github.com/puntotech/rxjs-docu/blob/master/doc/api/ajax/assets/icons/source-code.png)](https://github.com/ReactiveX/rxjs/blob/6.5.5/src/internal/observable/dom/AjaxObservable.ts#L6-L22)

[Documentación oficial en inglés](https://rxjs.dev/api/ajax/AjaxRequest)
