> For the complete documentation index, see [llms.txt](https://henryruhs.gitbook.io/ngx-crud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://henryruhs.gitbook.io/ngx-crud/api/http-aborting.md).

# 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]>
```
