# HTTP Aborting

### Switch

Enable aborting for the service:

```typescript
crudService.enableAbort(method : UniversalMethod = 'GET', lifetime : number = 2000) : this
```

Disable aborting for the service:

```typescript
crudService.disableAbort() : this
```

### Abort

Abort all requests of the service:

```typescript
crudService.abort() : this
```

Abort a single request by its `urlWithParams` for enabled services:

```typescript
abortService.abort(urlWithParams : string) : this
```

Abort many requests by their `url` for enabled services:

```typescript
abortService.abortMany(url : string) : this
```

Abort all requests for enabled services:

```typescript
abortService.abortAll() : this
```

### Observe

Observe a single request by its `urlWithParams` for enabled services:

```typescript
abortService.observe(urlWithParams : string) : Observable<[string, Store]>
```

Observe many requests by their `url` for enabled services:

```typescript
abortService.observeMany(url : string) : Observable<[string, Store]>
```

Observe all requests for enabled services:

```typescript
abortService.observeAll() : Observable<[string, Store]>
```
