🧠
ngx-crud
  • Introduction
  • API
    • HTTP Operations
    • HTTP Aborting
    • HTTP Caching
    • HTTP Observing
    • HTTP Options
    • HTTP Context
    • HTTP Headers
    • HTTP Params
    • Service Instance
    • Service Options
  • Reference
    • Modules
      • AbortModule
      • CacheModule
      • ObserveModule
      • CrudModule
    • Services
      • AbortService
      • CacheService
      • CommonService
      • CrudService
      • CustomService
      • DeleteService
      • FindService
      • GetService
      • ObserveService
      • PatchService
      • PostService
      • PutService
    • Interceptors
      • AbortInterceptor
      • CacheInterceptor
      • ObserveInterceptor
    • Decorators
      • @ApiUrl
      • @ApiRoute
    • Helpers
      • createUrl
      • createUrlWithId
      • stripUrlParams
  • Examples
    • Services
      • Fully Typed Collection
      • Limited Singleton
    • Components
      • Loader
    • Effects
      • ProfilerEffect
      • ErrorEffect
      • OfflineEffect
  • Links
    • GitHub
Powered by GitBook
On this page
  • Switch
  • Abort
  • Observe
  1. API

HTTP Aborting

Switch

Enable aborting for the service:

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

Disable aborting for the service:

crudService.disableAbort() : this

Abort

Abort all requests of the service:

crudService.abort() : this

Abort a single request by its urlWithParams for enabled services:

abortService.abort(urlWithParams : string) : this

Abort many requests by their url for enabled services:

abortService.abortMany(url : string) : this

Abort all requests for enabled services:

abortService.abortAll() : this

Observe

Observe a single request by its urlWithParams for enabled services:

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

Observe many requests by their url for enabled services:

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

Observe all requests for enabled services:

abortService.observeAll() : Observable<[string, Store]>
PreviousHTTP OperationsNextHTTP Caching

Last updated 2 years ago